[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPgLHd-8NxBN2-x2zzjgbVNj4E_4bhVqdTi1HmxMh5pawXPKZA@mail.gmail.com>
Date: Thu, 23 May 2013 17:09:50 +0800
From: Wei Yongjun <weiyj.lk@...il.com>
To: shahed.shaikh@...gic.com, jitendra.kalsaria@...gic.com,
ron.mercer@...gic.com
Cc: yongjun_wei@...ndmicro.com.cn, linux-driver@...gic.com,
netdev@...r.kernel.org
Subject: [PATCH] qlge: add missing free_netdev() on error in qlge_probe()
From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
Add the missing free_netdev() before return from function
qlge_probe() in the error handling case.
Signed-off-by: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
---
drivers/net/ethernet/qlogic/qlge/qlge_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/qlogic/qlge/qlge_main.c b/drivers/net/ethernet/qlogic/qlge/qlge_main.c
index e04d471..2553cf4 100644
--- a/drivers/net/ethernet/qlogic/qlge/qlge_main.c
+++ b/drivers/net/ethernet/qlogic/qlge/qlge_main.c
@@ -4717,6 +4717,7 @@ static int qlge_probe(struct pci_dev *pdev,
dev_err(&pdev->dev, "net device registration failed.\n");
ql_release_all(pdev);
pci_disable_device(pdev);
+ free_netdev(ndev);
return err;
}
/* Start up the timer to trigger EEH if
--
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