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:38:47 -0700 |
commit | 6108961b022d3bca9cded380a94731897e09543a (patch) | |
tree | 682b2ce526c9c31766cffb91bce13b62ac559276 | |
parent | 4acfe8fb6ea6e05f91585f7390fcf338324c4f1d (diff) | |
download | lwn-6108961b022d3bca9cded380a94731897e09543a.tar.gz lwn-6108961b022d3bca9cded380a94731897e09543a.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 a3f8a2551f2d..2a2bc0b7a526 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: |