diff options
| author | Julia Lawall <[email protected]> | 2007-12-17 16:20:02 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-12-17 19:28:16 -0800 |
| commit | 771cceb464874d4a22efd4a600e4597ad3f2fc9e (patch) | |
| tree | b8e3e6392ade2ec503ab3bfa2257d6a09dbadda5 /include/linux | |
| parent | d17a18dd92c91c784fcf7c785fa6bbf178fd0a6d (diff) | |
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 <[email protected]>
Cc: Johannes Berg <[email protected]>
Cc: Olaf Hering <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions