From: Gilad Ben-Yossef Date: Tue, 23 Jun 2015 07:52:10 +0000 (+0300) Subject: rocker: call correct unregister function on error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a076e6bfe7fe92a3825b3d1448e6f988fd033722;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Fixes: c1beeef7a32a791a ("rocker: implement IPv4 fib offloading") Acked-by: Jiri Pirko Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/rocker/rocker.c b/drivers/net/ethernet/rocker/rocker.c index cf98cc9bbc8d..3479573a6d78 100644 --- a/drivers/net/ethernet/rocker/rocker.c +++ b/drivers/net/ethernet/rocker/rocker.c @@ -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; }