Skip to content

Commit b22ae0b

Browse files
weiyjdavem330
authored andcommitted
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: c69618b ("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>
1 parent 02ee9b1 commit b22ae0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/net/ethernet/cadence

‎drivers/net/ethernet/cadence/macb.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2985,7 +2985,7 @@ static int macb_probe(struct platform_device *pdev)
29852985
dev->irq = platform_get_irq(pdev, 0);
29862986
if (dev->irq < 0) {
29872987
err = dev->irq;
2988-
goto err_disable_clocks;
2988+
goto err_out_free_netdev;
29892989
}
29902990

29912991
mac = of_get_mac_address(np);

0 commit comments

Comments
 (0)