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 e1558a93b61962710733dc8c11a2bc765607f1cd ]

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]>
Signed-off-by: bgn9000 <[email protected]>
  • Loading branch information
Wei Yongjun authored and bgn9000 committed Aug 26, 2013
1 parent 268f254 commit 2a6f774
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 2a6f774

Please sign in to comment.