diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2015-06-23 10:52:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-23 07:12:26 -0700 |
commit | a076e6bfe7fe92a3825b3d1448e6f988fd033722 (patch) | |
tree | a4bf171bf88b3dae313a38e7bc70b341028fdb81 | |
parent | 5b3f87dbc7faecbf4c97b4abbdf4cdc5bf070fd8 (diff) | |
download | linux-a076e6bfe7fe92a3825b3d1448e6f988fd033722.tar.bz2 |
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>
-rw-r--r-- | drivers/net/ethernet/rocker/rocker.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |