android_kernel_oneplus_msm8998/drivers/net/ethernet/stmicro/stmmac
Julia Lawall 25cecd7e35 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c: add missing iounmap
Add missing iounmap in error handling code, in a case where the function
already preforms iounmap on some other execution path.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression e;
statement S,S1;
int ret;
@@
e = \(ioremap\|ioremap_nocache\)(...)
... when != iounmap(e)
if (<+...e...+>) S
... when any
    when != iounmap(e)
*if (...)
   { ... when != iounmap(e)
     return ...; }
... when any
iounmap(e);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-01-12 20:05:28 -08:00
..
chain_mode.c
common.h stmmac: add the experimental PCI support 2011-12-21 15:44:34 -05:00
descs.h
descs_com.h
dwmac100.h
dwmac100_core.c
dwmac100_dma.c stmmac: use mdelay on timeout of sw reset 2011-11-17 03:13:41 -05:00
dwmac1000.h
dwmac1000_core.c
dwmac1000_dma.c stmmac: use mdelay on timeout of sw reset 2011-11-17 03:13:41 -05:00
dwmac_dma.h
dwmac_lib.c stmmac: add the experimental PCI support 2011-12-21 15:44:34 -05:00
enh_desc.c
Kconfig stmmac: add the experimental PCI support 2011-12-21 15:44:34 -05:00
Makefile stmmac: add the experimental PCI support 2011-12-21 15:44:34 -05:00
mmc.h
mmc_core.c stmmac: Fix compilation error in mmc_core.c 2012-01-10 14:57:20 -08:00
norm_desc.c
ring_mode.c
stmmac.h stmmac: add the experimental PCI support 2011-12-21 15:44:34 -05:00
stmmac_ethtool.c net: make ethtool_ops const 2012-01-05 13:23:00 -05:00
stmmac_main.c stmmac: use an unique MDIO bus name. 2012-01-10 16:35:01 -08:00
stmmac_mdio.c stmmac: use an unique MDIO bus name. 2012-01-10 16:35:01 -08:00
stmmac_pci.c stmmac: add the experimental PCI support 2011-12-21 15:44:34 -05:00
stmmac_platform.c drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c: add missing iounmap 2012-01-12 20:05:28 -08:00
stmmac_timer.c
stmmac_timer.h