Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5f5e380 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

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



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>
parent 7ffc37fc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -524,6 +524,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: