[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1435045930-12130-1-git-send-email-gilad@benyossef.com>
Date:	Tue, 23 Jun 2015 10:52:10 +0300
From:	Gilad Ben-Yossef <gilad@...yossef.com>
To:	<sfeldma@...il.com>, <jiri@...nulli.us>
CC:	<netdev@...r.kernel.org>, Gilad Ben-Yossef <giladb@...hip.com>
Subject: [PATCH] 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@...yossef.com>
CC: Gilad Ben-Yossef <giladb@...hip.com>
CC: Scott Feldman <sfeldma@...il.com>
CC: Jiri Pirko <jiri@...nulli.us>
---
 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 d4ec660..66b865a 100644
--- a/drivers/net/ethernet/rocker/rocker.c
+++ b/drivers/net/ethernet/rocker/rocker.c
@@ -5272,7 +5272,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;
 }
-- 
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists
 
