Commit cda280db authored by Wei Yongjun's avatar Wei Yongjun Committed by Ben Hutchings

gianfar: add missing iounmap() on error in gianfar_ptp_probe()

[ Upstream commit e5f5e380 ]

Add the missing iounmap() before return from gianfar_ptp_probe()
in the error handling case.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent f3baed9f
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment