Julia Lawall
a21f3c2a04
fs/romfs: correct error-handling code
...
romfs_iget returns an ERR_PTR value in an error case instead of NULL.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/ )
// <smpl>
@match exists@
expression x, E;
statement S1, S2;
@@
x = romfs_iget(...)
... when != x = E
(
* if (x == NULL || ...) S1 else S2
|
* if (x == NULL && ...) S1 else S2
)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-09-24 07:21:05 -07:00
..
2009-09-23 13:03:46 -05:00
2009-09-24 07:21:05 -07:00
2009-09-23 07:39:29 -07:00
2009-09-21 15:14:58 +02:00
2009-08-31 17:44:05 -10:00
2009-09-22 07:17:24 -07:00
2009-07-12 12:22:34 -07:00
2009-09-22 07:51:45 -07:00
2009-09-22 07:51:45 -07:00
2009-09-24 07:21:04 -07:00
2009-09-11 09:20:26 +02:00
2009-09-23 07:39:28 -07:00
2009-09-23 07:39:29 -07:00
2009-09-22 07:17:24 -07:00
2009-07-12 12:22:34 -07:00
2009-09-23 07:39:58 -07:00
2009-09-22 07:17:24 -07:00
2009-09-22 07:51:45 -07:00
2009-09-14 17:08:17 +02:00
2009-07-12 12:22:34 -07:00
2009-09-18 09:23:03 -07:00
2009-09-23 18:13:10 -07:00
2009-07-12 12:22:34 -07:00
2009-07-12 12:22:34 -07:00
2009-06-30 18:56:03 -07:00
2009-07-12 12:22:34 -07:00
2009-09-24 07:20:56 -07:00
2009-07-10 19:18:59 -07:00
2009-09-16 17:44:10 +02:00
2009-09-23 07:39:29 -07:00
2009-09-23 10:07:49 -07:00
2009-09-08 11:09:04 -07:00
2009-09-23 18:13:10 -07:00
2009-09-23 07:39:57 -07:00
2009-09-23 07:39:42 -07:00
2009-09-23 18:13:10 -07:00
2009-09-23 18:13:10 -07:00
2009-09-22 07:17:24 -07:00
2009-08-28 12:51:14 -04:00
2009-09-23 07:39:29 -07:00
2009-09-23 18:13:10 -07:00
2009-09-22 07:17:24 -07:00
2009-09-22 07:17:25 -07:00
2009-09-24 07:21:04 -07:00
2009-09-23 07:39:30 -07:00
2009-09-22 07:17:24 -07:00
2009-09-23 07:39:42 -07:00
2009-09-22 07:17:24 -07:00
2009-09-24 07:21:05 -07:00
2009-09-23 07:39:27 -07:00
2009-09-22 07:17:24 -07:00
2009-09-11 09:17:05 -07:00
2009-09-22 07:17:24 -07:00
2009-09-14 19:13:01 +02:00
2009-06-18 13:03:46 -07:00
2009-09-24 07:21:04 -07:00
2009-09-23 07:39:29 -07:00
2009-09-23 07:39:29 -07:00
2009-09-24 07:21:02 -07:00
2009-09-24 07:21:01 -07:00
2009-09-24 07:21:03 -07:00
2009-07-01 10:56:25 +02:00
2009-07-10 20:31:53 +02:00
2009-09-22 07:17:25 -07:00
2009-09-23 07:39:29 -07:00
2009-09-24 07:21:03 -07:00
2009-08-07 10:39:56 -07:00
2009-09-23 07:39:30 -07:00
2009-07-18 15:51:44 +02:00
2009-09-24 07:21:04 -07:00
2009-09-23 07:39:29 -07:00
2009-06-18 13:03:41 -07:00
2009-09-24 07:21:01 -07:00
2009-09-24 07:21:01 -07:00
2009-09-24 07:21:04 -07:00
2009-09-16 15:18:53 +02:00
2009-09-23 07:39:29 -07:00
2009-06-24 08:15:27 -04:00
2009-09-22 07:17:41 -07:00
2009-08-18 16:31:12 -07:00
2009-09-22 07:17:25 -07:00
2009-09-11 08:55:49 -07:00
2009-08-07 10:39:56 -07:00
2009-09-23 09:21:05 -07:00
2009-07-22 21:14:14 +02:00
2009-09-23 07:39:27 -07:00
2009-06-18 13:03:57 -07:00
2009-09-14 17:55:15 -07:00
2009-09-22 07:17:24 -07:00
2009-09-23 07:39:29 -07:00
2009-09-10 10:11:22 +10:00