aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-06-11 12:49:19 +0200
committerAlexander Couzens <lynxis@fe80.eu>2017-06-11 14:22:44 +0200
commit64cd4b48e8fb51055a24382564a09877d6d6a08c (patch)
treecb0c64ef52aa3dd0891e51aa9f2016cd27fd1b57 /target
parentd18cb142d5dcdf112095d593b60b8c16c74e986b (diff)
downloadupstream-64cd4b48e8fb51055a24382564a09877d6d6a08c.tar.gz
upstream-64cd4b48e8fb51055a24382564a09877d6d6a08c.tar.bz2
upstream-64cd4b48e8fb51055a24382564a09877d6d6a08c.zip
ar71xx/ag71xx_mdio_probe: fix a memory leak when probe fails
Found-by: Coverity Scan #1330233 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c
index 71ae8258b2..b63a4b7f9d 100644
--- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c
+++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c
@@ -234,7 +234,7 @@ static int ag71xx_mdio_probe(struct platform_device *pdev)
if (!res) {
dev_err(&pdev->dev, "no iomem resource found\n");
err = -ENXIO;
- goto err_out;
+ goto err_free_mdio;
}
am->mdio_base = ioremap_nocache(res->start, res->end - res->start + 1);