linux/arch/cris/arch-v32/drivers
Julia Lawall 6d9f4c5cfb arch/cris: add a missing iounmap
An extra error handling label is needed for the case where the ioremap has
succeeded.

The problem was detected using the following semantic match
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
type T,T1,T2;
identifier E;
statement S;
expression x1,x2;
constant C;
int ret;
@@

  T E;
  ...
* E = ioremap(...);
  if (E == NULL) S
  ... when != iounmap(E)
      when != if (E != NULL) { ... iounmap(E); ...}
      when != x1 = (T1)E
  if (...) {
    ... when != iounmap(E)
        when != if (E != NULL) { ... iounmap(E); ...}
        when != x2 = (T2)E
(
*   return;
|
*   return C;
|
*   return ret;
)
  }
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Mikael Starvik <starvik@axis.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-05 09:44:24 -08:00
..
pci arch/cris: add a missing iounmap 2008-02-05 09:44:24 -08:00
axisflashmap.c CRIS: remove MTD_AMSTD and MTD_OBSOLETE_CHIPS take two 2007-11-14 18:45:46 -08:00
cryptocop.c CRIS: replace old-style member inits with designated inits 2007-07-16 09:05:38 -07:00
gpio.c [PATCH] mark struct file_operations const 2 2007-02-12 09:48:44 -08:00
i2c.c spelling fixes: arch/cris/ 2007-10-20 01:08:50 +02:00
i2c.h [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
iop_fw_load.c Kobject: the cris iop_fw_load.c code is broken 2008-01-24 20:40:30 -08:00
Kconfig CRIS: avoid using arch links in Kconfig 2008-02-05 09:44:24 -08:00
Makefile [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
nandflash.c spelling fixes: arch/cris/ 2007-10-20 01:08:50 +02:00
pcf8563.c Fix misspellings of "system", "controller", "interrupt" and "necessary". 2007-10-19 23:10:43 +02:00
sync_serial.c cris: ARRAY_SIZE() cleanup 2007-11-14 18:45:46 -08:00