浏览代码

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>
Wei Yongjun 12 年之前
父节点
当前提交
e1558a93b6
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      net/l2tp/l2tp_ppp.c

+ 2 - 1
net/l2tp/l2tp_ppp.c

@@ -1793,7 +1793,8 @@ static const struct proto_ops pppol2tp_ops = {
 
 
 static const struct pppox_proto pppol2tp_proto = {
 static const struct pppox_proto pppol2tp_proto = {
 	.create		= pppol2tp_create,
 	.create		= pppol2tp_create,
-	.ioctl		= pppol2tp_ioctl
+	.ioctl		= pppol2tp_ioctl,
+	.owner		= THIS_MODULE,
 };
 };
 
 
 #ifdef CONFIG_L2TP_V3
 #ifdef CONFIG_L2TP_V3