From: Julia Lawall Date: Mon, 11 Jan 2010 15:17:12 +0000 (+0100) Subject: drivers/block/drbd/drbd_receiver.c: correct NULL test X-Git-Tag: v2.6.33-rc5~8^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23978161f90e5a3200ad6ac9b0d534911e4cbb28;p=pandora-kernel.git drivers/block/drbd/drbd_receiver.c: 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/) // @@ expression x,y; statement S; @@ x = \(kmalloc\|kcalloc\|kzalloc\)(...); ( if ((x) == NULL) S | if ( - y + x == NULL) S ) // Signed-off-by: Julia Lawall Cc: Lars Ellenberg Cc: Philipp Reisner Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- Reading git-diff-tree failed