linux-stable-rt/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
Kconfig CRIS: avoid using arch links in Kconfig 2008-02-05 09:44:24 -08:00
Makefile
axisflashmap.c
cryptocop.c
gpio.c
i2c.c
i2c.h
iop_fw_load.c Kobject: the cris iop_fw_load.c code is broken 2008-01-24 20:40:30 -08:00
nandflash.c
pcf8563.c
sync_serial.c