mirror of https://github.com/hak5/openwrt-owl.git
ar71xx/ag71xx_mdio_probe: fix a memory leak when probe fails
Found-by: Coverity Scan #1330233 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>owl
parent
d18cb142d5
commit
64cd4b48e8
|
@ -234,7 +234,7 @@ static int ag71xx_mdio_probe(struct platform_device *pdev)
|
||||||
if (!res) {
|
if (!res) {
|
||||||
dev_err(&pdev->dev, "no iomem resource found\n");
|
dev_err(&pdev->dev, "no iomem resource found\n");
|
||||||
err = -ENXIO;
|
err = -ENXIO;
|
||||||
goto err_out;
|
goto err_free_mdio;
|
||||||
}
|
}
|
||||||
|
|
||||||
am->mdio_base = ioremap_nocache(res->start, res->end - res->start + 1);
|
am->mdio_base = ioremap_nocache(res->start, res->end - res->start + 1);
|
||||||
|
|
Loading…
Reference in New Issue