Skip to content

Commit

Permalink
gianfar: add missing iounmap() on error in gianfar_ptp_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed May 18, 2013
1 parent 7ffc37f commit e5f5e38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/freescale/gianfar_ptp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e5f5e38

Please sign in to comment.