Commit e1558a93b61962710733dc8c11a2bc765607f1cd

Authored by Wei Yongjun
Committed by David S. Miller
1 parent f3ad89217f

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>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

... ... @@ -1793,7 +1793,8 @@
1793 1793  
1794 1794 static const struct pppox_proto pppol2tp_proto = {
1795 1795 .create = pppol2tp_create,
1796   - .ioctl = pppol2tp_ioctl
  1796 + .ioctl = pppol2tp_ioctl,
  1797 + .owner = THIS_MODULE,
1797 1798 };
1798 1799  
1799 1800 #ifdef CONFIG_L2TP_V3