2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 23:23:55 +08:00
linux-next/drivers/mtd/onenand
Julia Lawall 152b861622 mtd: onenand: samsung: 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: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-03-27 00:11:20 +01:00
..
generic.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
Kconfig mtd: onenand: convert to mtd_device_register() 2011-05-25 02:21:19 +01:00
Makefile mtd: add Samsung SoC OneNAND driver 2010-05-14 01:51:20 +01:00
omap2.c Merge git://git.infradead.org/mtd-2.6 2011-11-07 09:11:16 -08:00
onenand_base.c mtd: onenand: kill unused variable 2012-01-09 18:25:58 +00:00
onenand_bbt.c Merge git://git.infradead.org/mtd-2.6 2011-11-07 09:11:16 -08:00
onenand_sim.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
samsung.c mtd: onenand: samsung: add missing iounmap 2012-03-27 00:11:20 +01:00