Julia Lawall
bcf4d812e6
drivers/net: Correct NULL test
...
Test the value that was just allocated rather than the previously tested one.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/ )
// <smpl>
@r@
expression *x;
expression e;
identifier l;
@@
if (x == NULL || ...) {
... when forall
return ...; }
... when != goto l;
when != x = e
when != &x
*x == NULL
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-02-08 22:44:18 -08:00
..
2009-12-12 13:08:15 +01:00
2010-01-20 01:26:22 -05:00
2010-01-20 14:25:11 -05:00
2009-12-13 19:56:33 -08:00
2010-01-20 15:02:13 -08:00
2010-01-12 10:02:46 +01:00
2010-01-30 05:57:34 -08:00
2010-01-20 15:03:31 -08:00
2009-12-15 08:53:28 -08:00
2010-02-02 15:58:48 -08:00
2009-12-14 09:58:24 -08:00
2010-01-11 09:34:07 -08:00
2009-12-14 09:58:24 -08:00
2009-12-30 13:46:29 -08:00
2010-01-16 12:15:38 -08:00
2009-12-29 19:58:17 +01:00
2009-12-15 08:53:34 -08:00
2010-01-11 09:34:07 -08:00
2010-01-16 10:44:38 -08:00
2010-01-13 16:10:13 -08:00
2010-01-11 09:45:55 -08:00
2010-01-16 20:43:13 +01:00
2009-12-12 14:27:24 -08:00
2009-12-17 11:43:25 +10:30
2009-12-29 19:58:17 +01:00
2010-01-06 13:16:47 -08:00
2010-01-15 14:51:57 -08:00
2010-01-12 20:53:29 -08:00
2009-12-17 11:42:34 +00:00
2010-01-04 12:33:33 -08:00
2010-01-15 13:26:04 +11:00
2010-01-11 14:29:20 +01:00
2010-01-18 14:07:07 -08:00
2010-01-04 12:31:21 -08:00
2010-01-18 12:30:28 +01:00
2009-12-17 16:38:48 -08:00
2010-01-18 12:30:27 +01:00
2009-12-17 16:38:06 -08:00
2010-02-08 22:44:18 -08:00
2009-12-14 09:58:24 -08:00
2009-12-16 03:48:56 +00:00
2009-12-16 07:20:12 -08:00
2010-01-04 15:52:49 -08:00
2009-12-30 13:13:24 -08:00
2010-01-20 01:23:27 -05:00
2009-12-16 12:33:19 -08:00
2009-12-18 03:51:29 +03:00
2009-12-17 10:27:30 +00:00
2010-01-11 09:34:07 -08:00
2010-01-13 20:44:46 +01:00
2010-01-04 15:31:10 -08:00
2010-01-12 21:12:36 -08:00
2010-01-23 01:08:52 -08:00
2009-12-15 08:53:27 -08:00
2009-12-17 15:59:05 -08:00
2010-01-20 15:05:26 -08:00
2009-12-16 14:22:32 -05:00
2009-12-15 08:53:25 -08:00
2010-01-20 15:24:36 -08:00
2010-01-16 12:15:40 -08:00
2010-01-16 12:15:39 -08:00
2010-01-18 21:39:49 +00:00
2010-01-13 10:01:35 +00:00
2009-12-29 19:58:17 +01:00