mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 02:21:47 +00:00
cxgb4: Fixes cxgb4_inet6addr_notifier unregister call
commit b5a02f503c
("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>
This commit is contained in:
parent
fe6a043c53
commit
1793c798c3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user