* [PATCH] l2tp: add missing .owner to struct pppox_proto
@ 2013-07-02 1:02 Wei Yongjun
2013-07-02 8:12 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2013-07-02 1:02 UTC (permalink / raw)
To: jchapman, davem; +Cc: yongjun_wei, netdev
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Add missing .owner of struct pppox_proto. This prevents the
module from being removed from underneath its users.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
net/l2tp/l2tp_ppp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c
index 8dec687..5ebee2d 100644
--- a/net/l2tp/l2tp_ppp.c
+++ b/net/l2tp/l2tp_ppp.c
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] l2tp: add missing .owner to struct pppox_proto
2013-07-02 1:02 [PATCH] l2tp: add missing .owner to struct pppox_proto Wei Yongjun
@ 2013-07-02 8:12 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-07-02 8:12 UTC (permalink / raw)
To: weiyj.lk; +Cc: jchapman, yongjun_wei, netdev
From: Wei Yongjun <weiyj.lk@gmail.com>
Date: Tue, 2 Jul 2013 09:02:07 +0800
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Add missing .owner of struct pppox_proto. This prevents the
> module from being removed from underneath its users.
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Applied, and queued up for -stable, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-02 8:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-02 1:02 [PATCH] l2tp: add missing .owner to struct pppox_proto Wei Yongjun
2013-07-02 8:12 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).