Commit a076e6bf authored by Gilad Ben-Yossef's avatar Gilad Ben-Yossef Committed by David S. Miller

rocker: call correct unregister function on error

Use the correct unregister function matching the register
function on the error path.
Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Fixes: c1beeef7 ("rocker: implement IPv4 fib offloading")
Acked-by: default avatarJiri Pirko <jiri@resnulli.us>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5b3f87db
...@@ -5040,7 +5040,7 @@ static int __init rocker_module_init(void) ...@@ -5040,7 +5040,7 @@ static int __init rocker_module_init(void)
return 0; return 0;
err_pci_register_driver: err_pci_register_driver:
unregister_netdevice_notifier(&rocker_netevent_nb); unregister_netevent_notifier(&rocker_netevent_nb);
unregister_netdevice_notifier(&rocker_netdevice_nb); unregister_netdevice_notifier(&rocker_netdevice_nb);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment