cxgb4: Fixes cxgb4_inet6addr_notifier unregister call
authorHariprasad Shenai <hariprasad@chelsio.com>
Wed, 21 Jan 2015 15:27:52 +0000 (20:57 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jan 2015 22:45:46 +0000 (14:45 -0800)
commit b5a02f503caa0837 ("cxgb4 : Update ipv6 address handling api") introduced
a regression where unregister cxgb4_inet6addr_notifier wasn't getting called
during module_exit.

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

index 1147e1e8831476a63bbfde9e045ac347f2a80bdb..12c1a3fbf296c9035c4ac346a4b7e02be6348748 100644 (file)
@@ -6290,7 +6290,7 @@ static int __init cxgb4_init_module(void)
 static void __exit cxgb4_cleanup_module(void)
 {
 #if IS_ENABLED(CONFIG_IPV6)
-       if (inet6addr_registered && list_empty(&adapter_list)) {
+       if (inet6addr_registered) {
                unregister_inet6addr_notifier(&cxgb4_inet6addr_notifier);
                inet6addr_registered = false;
        }