rocker: call correct unregister function on error
Use the correct unregister function matching the register
function on the error path.
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Fixes: c1beeef7a3
("rocker: implement IPv4 fib offloading")
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5b3f87dbc7
commit
a076e6bfe7
|
@ -5040,7 +5040,7 @@ static int __init rocker_module_init(void)
|
|||
return 0;
|
||||
|
||||
err_pci_register_driver:
|
||||
unregister_netdevice_notifier(&rocker_netevent_nb);
|
||||
unregister_netevent_notifier(&rocker_netevent_nb);
|
||||
unregister_netdevice_notifier(&rocker_netdevice_nb);
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue