diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-05-16 22:25:34 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-27 11:27:31 -0700 |
commit | c76631940b5c893dbca8b504b1cbb5b970267dc8 (patch) | |
tree | b374326052c2184f92d0f7db4cd4cf862fd1ad7c | |
parent | d193887e46642b1b210bdf0a6bf29af82b519c89 (diff) | |
download | linux-3.10-c76631940b5c893dbca8b504b1cbb5b970267dc8.tar.gz linux-3.10-c76631940b5c893dbca8b504b1cbb5b970267dc8.tar.bz2 linux-3.10-c76631940b5c893dbca8b504b1cbb5b970267dc8.zip |
gianfar: add missing iounmap() on error in gianfar_ptp_probe()
[ Upstream commit e5f5e380e0f3bb11f04ca5bc66a551e58e0ad26e ]
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 ca2748a6f86..8de54e5ea37 100644 --- a/drivers/net/ethernet/freescale/gianfar_ptp.c +++ b/drivers/net/ethernet/freescale/gianfar_ptp.c @@ -520,6 +520,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: |