Use the correct unregister function matching the register function on the error path.
Signed-off-by: Gilad Ben-Yossef <gi...@benyossef.com> CC: Gilad Ben-Yossef <gil...@ezchip.com> CC: Scott Feldman <sfel...@gmail.com> CC: Jiri Pirko <j...@resnulli.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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html