l2tp: add missing .owner to struct pppox_proto
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 2 Jul 2013 01:02:07 +0000 (09:02 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 2 Aug 2013 20:14:47 +0000 (22:14 +0200)
[ Upstream commit e1558a93b61962710733dc8c11a2bc765607f1cd ]

Add missing .owner of struct pppox_proto. This prevents the
module from being removed from underneath its users.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/l2tp/l2tp_ppp.c

index 74410e6..e579006 100644 (file)
@@ -1778,7 +1778,8 @@ static const struct proto_ops pppol2tp_ops = {
 
 static const struct pppox_proto pppol2tp_proto = {
        .create         = pppol2tp_create,
-       .ioctl          = pppol2tp_ioctl
+       .ioctl          = pppol2tp_ioctl,
+       .owner          = THIS_MODULE,
 };
 
 #ifdef CONFIG_L2TP_V3