Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 446e72f3 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

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: default avatarEric Dumazet <eric.dumazet@gmail.com>
Acked-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a53a8b56
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2680,6 +2680,7 @@ static int __init pppol2tp_init(void)
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);
}