Skip to content

Commit

Permalink
l2tp: add missing .owner to struct pppox_proto
Browse files Browse the repository at this point in the history
[ 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: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Wei Yongjun authored and ts1506 committed Jul 31, 2013
1 parent f2a3b11 commit 688ba49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/l2tp/l2tp_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1771,7 +1771,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
Expand Down

0 comments on commit 688ba49

Please sign in to comment.