Skip to content

Commit

Permalink
l2tp: add missing .owner to struct pppox_proto
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Wei Yongjun authored and davem330 committed Jul 2, 2013
1 parent f3ad892 commit e1558a9
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 @@ -1793,7 +1793,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 e1558a9

Please sign in to comment.