diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-05-17 00:25:34 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-18 03:19:36 +0200 |
commit | e5f5e380e0f3bb11f04ca5bc66a551e58e0ad26e (patch) | |
tree | 9a7ca14c80a1da274922242372068915f532f242 /drivers/net | |
parent | Merge tag 'batman-adv-fix-for-davem' of git://git.open-mesh.org/linux-merge (diff) | |
download | linux-e5f5e380e0f3bb11f04ca5bc66a551e58e0ad26e.tar.xz linux-e5f5e380e0f3bb11f04ca5bc66a551e58e0ad26e.zip |
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')
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar_ptp.c | 1 |
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: |