mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
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>
This commit is contained in:
parent
0e255f1c0c
commit
4d2593cc65
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user