summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2015-06-23 07:52:10 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-06-23 14:12:26 (GMT)
commita076e6bfe7fe92a3825b3d1448e6f988fd033722 (patch)
treea4bf171bf88b3dae313a38e7bc70b341028fdb81 /drivers/net
parent5b3f87dbc7faecbf4c97b4abbdf4cdc5bf070fd8 (diff)
downloadlinux-a076e6bfe7fe92a3825b3d1448e6f988fd033722.tar.xz
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: c1beeef7a32a791a ("rocker: implement IPv4 fib offloading") Acked-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/rocker/rocker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/rocker/rocker.c b/drivers/net/ethernet/rocker/rocker.c
index cf98cc9..3479573 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;
}