Files
linux/drivers/net
Julia Lawall 7577c943f9 drivers/net/wireless/p54/eeprom.c: Return -ENOMEM on memory allocation failure
commit 0d91f22b75 upstream.

In this code, 0 is returned on memory allocation failure, even though other
failures return -ENOMEM or other similar values.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression ret;
expression x,e1,e2,e3;
@@

ret = 0
... when != ret = e1
*x = \(kmalloc\|kcalloc\|kzalloc\)(...)
... when != ret = e2
if (x == NULL) { ... when != ret = e3
  return ret;
}
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-11-22 10:47:35 -08:00
..
2010-10-28 21:44:03 -07:00
2010-02-09 04:50:59 -08:00
2010-09-26 17:21:33 -07:00
2010-07-05 11:10:26 -07:00
2010-10-28 21:44:09 -07:00
2010-01-28 15:01:48 -08:00
2009-09-30 20:11:11 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2010-09-26 17:21:36 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2009-09-01 01:13:50 -07:00
2008-11-25 18:25:32 -08:00
2010-10-28 21:44:13 -07:00
2009-04-04 16:51:14 -07:00
2010-09-26 17:21:32 -07:00
2009-08-12 23:03:00 -07:00
2009-08-12 22:53:28 -07:00
2009-08-12 23:03:01 -07:00
2009-08-12 23:03:01 -07:00
2009-11-06 20:26:09 -08:00
2008-09-22 19:27:10 -07:00
2009-08-15 18:50:44 -07:00
2010-08-02 10:21:25 -07:00
2009-10-24 06:53:07 -07:00
2009-09-23 07:39:43 -07:00
2008-11-25 18:23:59 -08:00
2009-10-20 18:51:37 -07:00
2009-02-04 16:43:44 -08:00
2009-02-26 21:02:19 -08:00
2008-11-25 18:24:57 -08:00
2009-04-16 02:20:08 -07:00
2009-09-07 01:56:52 -07:00
2009-01-06 10:47:44 -08:00
2009-10-02 09:55:19 -07:00
2009-07-06 13:05:13 -07:00
2009-11-20 13:53:33 -08:00
2009-10-20 19:11:06 -07:00
2008-11-25 18:24:38 -08:00
2009-04-16 02:20:16 -07:00
2009-11-23 14:18:53 -08:00
2009-04-16 02:20:21 -07:00
2009-09-21 15:14:58 +02:00
2008-03-26 00:18:00 -04:00
2009-07-16 09:14:23 -07:00
2009-10-26 16:23:20 -07:00
2010-07-05 11:11:15 -07:00
2008-11-10 15:11:56 -05:00
2009-04-29 17:32:34 -07:00
2009-08-02 12:20:40 -07:00
2009-10-26 17:19:44 -07:00
2010-10-28 21:44:11 -07:00
2009-10-01 15:14:54 -07:00
2010-08-02 10:20:44 -07:00
2009-10-01 15:14:55 -07:00
2009-11-29 23:47:14 -08:00
2009-03-27 00:46:48 -07:00
2008-04-16 20:06:50 -04:00
2008-11-25 18:25:49 -08:00
2008-08-29 02:13:33 -07:00
2008-08-29 02:14:29 -07:00
2008-08-29 02:14:43 -07:00
2010-05-12 14:57:13 -07:00
2010-04-01 15:58:05 -07:00
2008-05-30 22:18:02 -04:00
2009-11-19 13:16:22 -08:00
2009-01-11 00:06:36 -08:00