summaryrefslogtreecommitdiffstats
path: root/net/l2tp
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-07-02 09:02:07 +0800
committerDavid S. Miller <davem@davemloft.net>2013-07-02 01:11:56 -0700
commite1558a93b61962710733dc8c11a2bc765607f1cd (patch)
tree68a87efa7cc87cb95452ca5c4ba1fe848f1c9a03 /net/l2tp
parentf3ad89217fa8088203b6c040584987028d524456 (diff)
downloadlinux-stable-e1558a93b61962710733dc8c11a2bc765607f1cd.tar.gz
linux-stable-e1558a93b61962710733dc8c11a2bc765607f1cd.tar.bz2
linux-stable-e1558a93b61962710733dc8c11a2bc765607f1cd.zip
l2tp: add missing .owner to struct pppox_proto
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>
Diffstat (limited to 'net/l2tp')
-rw-r--r--net/l2tp/l2tp_ppp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c
index 8dec6876dc50..5ebee2ded9e9 100644
--- a/net/l2tp/l2tp_ppp.c
+++ b/net/l2tp/l2tp_ppp.c
@@ -1793,7 +1793,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