Commit 4d2593cc authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: default avatarJitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0e255f1c
...@@ -4717,6 +4717,7 @@ static int qlge_probe(struct pci_dev *pdev, ...@@ -4717,6 +4717,7 @@ static int qlge_probe(struct pci_dev *pdev,
dev_err(&pdev->dev, "net device registration failed.\n"); dev_err(&pdev->dev, "net device registration failed.\n");
ql_release_all(pdev); ql_release_all(pdev);
pci_disable_device(pdev); pci_disable_device(pdev);
free_netdev(ndev);
return err; return err;
} }
/* Start up the timer to trigger EEH if /* Start up the timer to trigger EEH if
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment