Skip to content

Commit e1558a9

Browse files
Wei Yongjundavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f3ad892 commit e1558a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/l2tp/l2tp_ppp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,8 @@ static const struct proto_ops pppol2tp_ops = {
17931793

17941794
static const struct pppox_proto pppol2tp_proto = {
17951795
.create = pppol2tp_create,
1796-
.ioctl = pppol2tp_ioctl
1796+
.ioctl = pppol2tp_ioctl,
1797+
.owner = THIS_MODULE,
17971798
};
17981799

17991800
#ifdef CONFIG_L2TP_V3

0 commit comments

Comments
 (0)