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 10:34:32 -0700 |
commit | cc56da01f9325fd72ebf4d759b8333020bdc5f6c (patch) | |
tree | 66d9352463af9036812b74b9bdbfea5e9353f2da | |
parent | 41a187532a9458873a603aee48f017c0288d03fe (diff) | |
download | kernel_samsung_aries-cc56da01f9325fd72ebf4d759b8333020bdc5f6c.zip kernel_samsung_aries-cc56da01f9325fd72ebf4d759b8333020bdc5f6c.tar.gz kernel_samsung_aries-cc56da01f9325fd72ebf4d759b8333020bdc5f6c.tar.bz2 |
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/gianfar_ptp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/gianfar_ptp.c b/drivers/net/gianfar_ptp.c index c413479..68cfa08 100644 --- a/drivers/net/gianfar_ptp.c +++ b/drivers/net/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: |