mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
gianfar: add missing iounmap() on error in gianfar_ptp_probe()
[ Upstream commit e5f5e380e0 ]
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>
This commit is contained in:
parent
d193887e46
commit
c76631940b
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user