diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-05-22 23:09:50 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-25 21:22:32 -0700 |
commit | 4d2593cc65fa15f2a36313aa8d03a0937226ad49 (patch) | |
tree | 11c3f556138f546afbe5b2b0a06f903a552913cd | |
parent | 0e255f1c0c9add2f0c920240ac4cadc28ae274c3 (diff) | |
download | linux-3.10-4d2593cc65fa15f2a36313aa8d03a0937226ad49.tar.gz linux-3.10-4d2593cc65fa15f2a36313aa8d03a0937226ad49.tar.bz2 linux-3.10-4d2593cc65fa15f2a36313aa8d03a0937226ad49.zip |
qlge: add missing free_netdev() on error in qlge_probe()
Add the missing free_netdev() before return from function
qlge_probe() in the error handling case.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/qlogic/qlge/qlge_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qlge/qlge_main.c b/drivers/net/ethernet/qlogic/qlge/qlge_main.c index 50235d20159..f87cc216045 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 |