projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02ee9b1
)
net: macb: add missing free_netdev() on error in macb_probe()
author
Wei Yongjun
<
[email protected]
>
Fri, 12 Aug 2016 15:43:54 +0000
(15:43 +0000)
committer
David S. Miller
<
[email protected]
>
Mon, 15 Aug 2016 04:23:42 +0000
(21:23 -0700)
Add the missing free_netdev() before return from function macb_probe()
in the platform_get_irq() error handling case.
Fixes: c69618b3e4f2 ("net/macb: fix probe sequence to setup clocks earlier")
Signed-off-by: Wei Yongjun <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/cadence/macb.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/cadence/macb.c
b/drivers/net/ethernet/cadence/macb.c
index 6b797e301e3f82836e1e1e34a9c5e586e4128b48..dbce938e7d0c326de93f36757fa6b33af42583d5 100644
(file)
--- a/
drivers/net/ethernet/cadence/macb.c
+++ b/
drivers/net/ethernet/cadence/macb.c
@@
-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);