Patchwork [06/50] gianfar: add missing iounmap() on error in gianfar_ptp_probe()

login
register
mail settings
Submitter Luis Henriques
Date July 2, 2013, 11:06 a.m.
Message ID <1372763258-20664-7-git-send-email-luis.henriques@canonical.com>
Download mbox | patch
Permalink /patch/256337/
State New
Headers show

Comments

Luis Henriques - July 2, 2013, 11:06 a.m.
3.5.7.16 -stable review patch.  If anyone has any objections, please let me know.

------------------

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

commit e5f5e380e0f3bb11f04ca5bc66a551e58e0ad26e upstream.

Add the missing iounmap() before return from gianfar_ptp_probe()
in the error handling case.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
---
 drivers/net/ethernet/freescale/gianfar_ptp.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/net/ethernet/freescale/gianfar_ptp.c b/drivers/net/ethernet/freescale/gianfar_ptp.c
index d81c7af..d98b3f2 100644
--- a/drivers/net/ethernet/freescale/gianfar_ptp.c
+++ b/drivers/net/ethernet/freescale/gianfar_ptp.c
@@ -521,6 +521,7 @@  static int gianfar_ptp_probe(struct platform_device *dev)
 	return 0;
 
 no_clock:
+	iounmap(etsects->regs);
 no_ioremap:
 	release_resource(etsects->rsrc);
 no_resource: