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-09 19:43:33 -08:00
2009-12-03 13:18:01 -08:00
2010-01-05 20:53:07 +00:00
2009-12-11 17:12:17 -08:00
2009-12-02 22:10:16 -08:00
2010-01-07 01:07:30 -08:00
2010-02-02 07:48:40 -08:00
2010-01-28 05:55:54 -08:00
2010-01-03 21:42:49 -08:00
2010-02-08 22:37:24 -08:00
2010-01-23 01:08:53 -08:00
2010-01-23 02:02:21 -08:00
2009-12-12 14:27:24 -08:00
2010-01-03 21:42:50 -08:00
2009-12-03 13:18:01 -08:00
2010-02-04 09:49:31 -08:00
2010-01-28 05:55:53 -08:00
2009-12-09 19:43:33 -08:00
2010-01-20 16:21:22 -08:00
2010-02-03 19:17:17 -08:00
2010-01-06 12:54:39 -08:00
2009-12-08 20:24:35 -08:00
2010-02-03 19:15:24 -08:00
2009-12-17 01:56:59 +00:00
2010-01-23 01:08:52 -08:00
2010-01-22 22:45:46 -08:00
2010-01-25 15:46:58 -08:00
2010-01-25 15:49:59 -08:00
2009-12-04 15:39:55 +01:00
2009-12-09 19:43:33 -08:00
2009-12-09 19:43:33 -08:00
2010-01-23 01:08:51 -08:00
2010-01-28 21:37:18 -08:00
2009-12-15 08:53:25 -08:00
2010-01-10 13:40:10 -08:00
2009-12-09 19:43:33 -08:00
2010-01-21 16:49:24 -08:00
2010-01-28 05:42:33 -08:00
2009-12-15 08:53:25 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-11-18 23:29:17 -08:00
2009-12-26 20:24:45 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-11-18 23:29:17 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-12-04 15:39:55 +01:00
2009-12-04 15:39:55 +01:00
2009-12-04 15:39:55 +01:00
2009-12-03 13:18:01 -08:00
2010-01-03 21:42:52 -08:00
2009-12-03 13:18:01 -08:00
2009-11-29 00:57:15 -08:00
2010-02-08 22:44:18 -08:00
2009-12-08 21:00:22 -08:00
2009-12-15 21:12:22 -08:00
2010-01-19 01:59:18 -08:00
2009-12-03 13:18:01 -08:00
2009-12-20 18:40:18 -08:00
2009-12-03 13:18:11 -08:00
2009-11-05 20:00:41 -08:00
2009-12-03 13:18:01 -08:00
2009-11-05 20:00:29 -08:00
2009-12-25 17:13:07 -08:00
2009-12-09 19:43:33 -08:00
2009-11-17 04:08:48 -08:00
2009-11-06 20:26:09 -08:00
2009-12-11 15:07:55 -08:00
2009-12-13 19:56:35 -08:00
2010-01-07 01:07:29 -08:00
2010-01-07 17:27:31 -08:00
2009-11-18 23:29:17 -08:00
2009-11-18 23:29:17 -08:00
2009-12-03 13:18:01 -08:00
2009-12-15 08:53:25 -08:00
2009-11-11 19:22:21 -08:00
2009-12-18 20:18:21 -08:00
2009-12-03 13:18:01 -08:00
2009-11-18 23:29:17 -08:00
2009-11-18 23:29:17 -08:00
2009-12-03 13:18:01 -08:00
2009-11-18 22:19:03 -08:00
2009-12-03 13:18:01 -08:00
2009-12-08 20:29:10 -08:00
2009-11-18 23:29:17 -08:00
2009-12-30 22:03:43 -08:00
2009-11-02 23:40:57 -08:00
2009-11-02 23:40:59 -08:00
2009-12-03 13:18:01 -08:00
2009-12-26 20:24:44 -08:00
2009-12-18 20:38:37 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-12-26 20:24:45 -08:00
2009-11-18 23:29:17 -08:00
2009-11-20 15:35:04 -08:00
2009-11-18 10:48:39 -08:00
2009-12-03 13:18:01 -08:00
2009-12-09 19:43:33 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-12-30 12:37:35 -08:00
2009-11-18 23:29:17 -08:00
2010-01-28 05:54:49 -08:00
2009-12-03 16:04:25 -08:00
2009-12-03 13:18:01 -08:00
2009-12-04 15:39:55 +01:00
2009-12-03 13:18:01 -08:00
2009-12-09 19:43:33 -08:00
2010-01-03 21:42:51 -08:00
2009-12-14 09:58:24 -08:00
2009-11-18 23:29:17 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-11-18 23:29:17 -08:00
2009-12-03 15:59:22 -08:00
2009-12-17 01:56:59 +00:00
2009-11-18 23:29:17 -08:00
2010-01-07 01:11:10 -08:00
2009-11-18 23:29:17 -08:00
2009-12-03 13:18:01 -08:00
2009-11-18 23:29:17 -08:00
2009-12-03 13:18:01 -08:00
2009-11-18 23:29:17 -08:00
2009-11-18 23:29:17 -08:00
2010-01-03 21:42:52 -08:00
2009-12-03 13:18:01 -08:00
2009-11-18 23:29:17 -08:00
2009-12-03 13:18:01 -08:00
2009-12-26 20:24:45 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-12-01 16:15:57 -08:00
2009-11-05 22:18:14 -08:00
2009-12-09 19:43:33 -08:00
2009-12-02 00:52:31 -08:00
2009-11-09 09:40:57 +01:00
2009-12-09 19:43:33 -08:00
2009-12-03 13:18:01 -08:00
2009-12-15 08:53:25 -08:00
2010-01-03 22:06:15 -08:00
2010-01-19 12:36:20 -08:00
2009-12-03 13:18:01 -08:00
2009-11-18 23:29:17 -08:00
2009-11-18 23:29:17 -08:00
2009-12-03 13:18:01 -08:00
2009-11-18 23:29:17 -08:00
2010-01-03 21:42:53 -08:00
2009-12-09 19:43:33 -08:00
2009-12-03 13:18:01 -08:00
2010-02-03 18:34:28 -08:00
2009-10-29 22:57:27 -07:00
2009-12-03 13:18:01 -08:00
2009-12-11 15:07:54 -08:00
2009-12-11 16:16:33 -08:00
2009-11-18 23:29:17 -08:00
2009-11-18 23:29:17 -08:00
2009-12-03 13:18:01 -08:00
2009-12-15 08:53:25 -08:00
2009-12-04 15:39:55 +01:00
2009-12-01 22:13:38 -08:00
2009-12-09 19:43:33 -08:00
2010-01-26 21:05:25 -08:00
2009-11-18 23:29:17 -08:00
2009-11-18 23:29:17 -08:00
2009-12-03 13:18:01 -08:00
2009-11-18 22:19:03 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00
2009-11-18 23:29:17 -08:00
2009-11-18 23:29:17 -08:00
2009-11-18 23:29:17 -08:00
2009-12-03 13:18:01 -08:00
2009-11-04 05:06:24 -08:00
2010-01-13 17:18:54 -08:00
2010-01-13 17:18:54 -08:00
2009-12-03 13:18:01 -08:00
2009-12-26 20:24:44 -08:00
2009-12-03 13:18:01 -08:00
2010-01-19 01:59:03 -08:00
2010-01-06 20:32:38 -08:00
2009-12-14 09:58:24 -08:00
2009-12-23 21:54:29 -08:00
2010-01-03 21:18:40 -08:00
2009-11-26 15:51:29 -08:00
2010-01-25 15:51:01 -08:00
2009-11-04 08:47:24 -08:00
2009-11-18 23:29:17 -08:00
2009-11-18 23:29:17 -08:00
2009-12-03 13:18:01 -08:00
2009-12-03 13:18:01 -08:00