mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-16 09:04:53 -04:00
net: macb: add missing free_netdev() on error in macb_probe()
Add the missing free_netdev() before return from function macb_probe()
in the platform_get_irq() error handling case.
Fixes: c69618b3e4 ("net/macb: fix probe sequence to setup clocks earlier")
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
02ee9b18de
commit
b22ae0b4d9
@@ -2985,7 +2985,7 @@ static int macb_probe(struct platform_device *pdev)
|
||||
dev->irq = platform_get_irq(pdev, 0);
|
||||
if (dev->irq < 0) {
|
||||
err = dev->irq;
|
||||
goto err_disable_clocks;
|
||||
goto err_out_free_netdev;
|
||||
}
|
||||
|
||||
mac = of_get_mac_address(np);
|
||||
|
||||
Reference in New Issue
Block a user