1
linux/drivers/net/can
Julia Lawall ce739b473c drivers/net/can: Correct NULL test
Test the just-allocated value for NULL rather than some other value.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x,y;
statement S;
@@

x = \(kmalloc\|kcalloc\|kzalloc\)(...);
(
if ((x) == NULL) S
|
if (
-   y
+   x
       == NULL)
 S
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-01-03 21:42:49 -08:00
..
mscan can: Fix data length code handling in rx path 2009-12-13 19:47:42 -08:00
sja1000 can: Fix data length code handling in rx path 2009-12-13 19:47:42 -08:00
usb can: Fix data length code handling in rx path 2009-12-13 19:47:42 -08:00
at91_can.c can/at91: don't check platform_get_irq's return value against zero 2009-12-18 20:31:56 -08:00
bfin_can.c can: Fix data length code handling in rx path 2009-12-13 19:47:42 -08:00
dev.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-11-17 00:05:02 -08:00
Kconfig can: CAN_MCP251X should depend on HAS_DMA 2009-12-13 19:56:36 -08:00
Makefile can: add the driver for Analog Devices Blackfin on-chip CAN controllers 2009-12-11 15:07:58 -08:00
mcp251x.c drivers/net/can: Correct NULL test 2010-01-03 21:42:49 -08:00
ti_hecc.c can: Fix data length code handling in rx path 2009-12-13 19:47:42 -08:00
vcan.c can: fix NOHZ local_softirq_pending 08 warning 2009-09-15 01:31:34 -07:00