summaryrefslogtreecommitdiff
path: root/drivers/net/pppol2tp.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2009-07-28 03:47:39 +0000
committerDavid S. Miller <davem@davemloft.net>2009-08-02 12:20:34 -0700
commit446e72f30eca76d6f9a1a54adf84d2c6ba2831f8 (patch)
treeb532fdcb477702afb9c0fe75f245af8fea686f77 /drivers/net/pppol2tp.c
parenta53a8b56827cc429c6d9f861ad558beeb5f6103f (diff)
downloadlwn-446e72f30eca76d6f9a1a54adf84d2c6ba2831f8.tar.gz
lwn-446e72f30eca76d6f9a1a54adf84d2c6ba2831f8.zip
pppol2tp: calls unregister_pernet_gen_device() at unload time
Failure to call unregister_pernet_gen_device() can exhaust memory if module is loaded/unloaded many times. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pppol2tp.c')
-rw-r--r--drivers/net/pppol2tp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c
index e7935d09c896..e0f9219a0aea 100644
--- a/drivers/net/pppol2tp.c
+++ b/drivers/net/pppol2tp.c
@@ -2680,6 +2680,7 @@ out_unregister_pppol2tp_proto:
static void __exit pppol2tp_exit(void)
{
unregister_pppox_proto(PX_PROTO_OL2TP);
+ unregister_pernet_gen_device(pppol2tp_net_id, &pppol2tp_net_ops);
proto_unregister(&pppol2tp_sk_proto);
}