mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 08:02:07 +00:00
ce739b473c
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> |
||
---|---|---|
.. | ||
mscan | ||
sja1000 | ||
usb | ||
at91_can.c | ||
bfin_can.c | ||
dev.c | ||
Kconfig | ||
Makefile | ||
mcp251x.c | ||
ti_hecc.c | ||
vcan.c |