diff options
author | Jesse Gross <jesse@nicira.com> | 2014-11-03 19:38:38 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-05 15:00:51 -0500 |
commit | d3ca9eafc0ed97b8f56fdf23655cfece89c48354 (patch) | |
tree | 8ff0c570b53c3407c76e959e5f17dcc4caabe6ec /net/ipv4/geneve.c | |
parent | 45cac46e51da75628ac2a593c70f5144abb9b31d (diff) | |
download | talos-obmc-linux-d3ca9eafc0ed97b8f56fdf23655cfece89c48354.tar.gz talos-obmc-linux-d3ca9eafc0ed97b8f56fdf23655cfece89c48354.zip |
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 <azhou@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/geneve.c')
-rw-r--r-- | net/ipv4/geneve.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |