rocker: call correct unregister function on error
authorGilad Ben-Yossef <gilad@benyossef.com>
Tue, 23 Jun 2015 07:52:10 +0000 (10:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2015 14:12:26 +0000 (07:12 -0700)
Use the correct unregister function matching the register
function on the error path.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Fixes: c1beeef7a32a791a ("rocker: implement IPv4 fib offloading")
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c

index cf98cc9bbc8dc9d57545bbbe25592f6878fcf324..3479573a6d784d863b3895dc0875297b6e9354dc 100644 (file)
@@ -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;
 }