Files
linux/drivers
Julia Lawall 771cceb464 drivers/macintosh/via-pmu.c: Added a missing iounmap
The error handling code should undo the ioremap as well.

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: Johannes Berg <johannes@sipsolutions.net>
Cc: Olaf Hering <olaf@aepfle.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-12-17 19:28:16 -08:00
..
…
2007-12-03 08:13:17 -08:00
…
…
…
2007-12-04 01:35:32 -05:00
2007-12-12 13:45:25 +01:00
2007-12-07 09:06:53 +00:00
…
2007-11-14 18:45:39 -08:00
2007-11-05 15:12:31 -08:00
2007-11-29 09:24:53 -08:00
…
…
2007-12-10 19:43:54 -08:00
2007-12-17 19:28:15 -08:00
…
2007-12-10 19:43:55 -08:00
…
…
2007-11-14 18:45:36 -08:00
2007-12-04 16:48:06 +00:00
…
…
…