summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/gianfar_ptp.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-05-17 02:25:34 +0400
committerDavid S. Miller <davem@davemloft.net>2013-05-18 05:19:36 +0400
commite5f5e380e0f3bb11f04ca5bc66a551e58e0ad26e (patch)
tree9a7ca14c80a1da274922242372068915f532f242 /drivers/net/ethernet/freescale/gianfar_ptp.c
parent7ffc37fc358e6298f0e4712c8f82385331303934 (diff)
downloadlinux-e5f5e380e0f3bb11f04ca5bc66a551e58e0ad26e.tar.xz
gianfar: add missing iounmap() on error in gianfar_ptp_probe()
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>
Diffstat (limited to 'drivers/net/ethernet/freescale/gianfar_ptp.c')
-rw-r--r--drivers/net/ethernet/freescale/gianfar_ptp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar_ptp.c b/drivers/net/ethernet/freescale/gianfar_ptp.c
index 576e4b858fce..083ea2b4d20a 100644
--- a/drivers/net/ethernet/freescale/gianfar_ptp.c
+++ b/drivers/net/ethernet/freescale/gianfar_ptp.c
@@ -524,6 +524,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: