Skip to content

Commit d35b651

Browse files
Wei Yongjunkamalmostafa
authored andcommitted
l2tp: add missing .owner to struct pppox_proto
[ Upstream commit e1558a9 ] 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]> Signed-off-by: Kamal Mostafa <[email protected]>
1 parent 9318834 commit d35b651

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
@@ -1831,7 +1831,8 @@ static const struct proto_ops pppol2tp_ops = {
18311831

18321832
static const struct pppox_proto pppol2tp_proto = {
18331833
.create = pppol2tp_create,
1834-
.ioctl = pppol2tp_ioctl
1834+
.ioctl = pppol2tp_ioctl,
1835+
.owner = THIS_MODULE,
18351836
};
18361837

18371838
#ifdef CONFIG_L2TP_V3

0 commit comments

Comments
 (0)