From: Jesse Gross Date: Tue, 4 Nov 2014 03:38:38 +0000 (-0800) Subject: geneve: Unregister pernet subsys on module unload. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d3ca9eafc0ed97b8f56fdf23655cfece89c48354;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git geneve: Unregister pernet subsys on module unload. The pernet ops aren't ever unregistered, which causes a memory leak and an OOPs if the module is ever reinserted. Fixes: 0b5e8b8eeae4 ("net: Add Geneve tunneling protocol driver") CC: Andy Zhou Signed-off-by: Jesse Gross Acked-by: Nicolas Dichtel Signed-off-by: David S. Miller --- diff --git a/net/ipv4/geneve.c b/net/ipv4/geneve.c index 6e5266cf403d..dedb21e99914 100644 --- a/net/ipv4/geneve.c +++ b/net/ipv4/geneve.c @@ -366,6 +366,7 @@ late_initcall(geneve_init_module); static void __exit geneve_cleanup_module(void) { destroy_workqueue(geneve_wq); + unregister_pernet_subsys(&geneve_net_ops); } module_exit(geneve_cleanup_module);