kernel-ark/drivers/block/drbd
Julia Lawall 2d1ee87d87 drivers/block/drbd: 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>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
2010-01-04 11:51:41 +01:00
..
drbd_actlog.c drbd: remove tracing bits 2009-10-01 21:17:58 +02:00
drbd_bitmap.c
drbd_int.h drbd: Constify struct file_operations 2009-12-21 12:45:15 +01:00
drbd_main.c drbd: Fix for a race between IO and a detach operation [Bugz 262] 2009-12-29 17:36:40 +01:00
drbd_nl.c drbd: Use drbd_crypto_is_hash() instead of an open coded check 2009-12-29 17:35:27 +01:00
drbd_proc.c drbd: Constify struct file_operations 2009-12-21 12:45:15 +01:00
drbd_receiver.c drivers/block/drbd: Correct NULL test 2010-01-04 11:51:41 +01:00
drbd_req.c drbd_req.c: use part_[inc|dec]_in_flight() 2009-12-03 17:40:51 +01:00
drbd_req.h
drbd_strings.c
drbd_vli.h
drbd_worker.c drbd: remove unused #include <linux/version.h> 2009-12-21 13:41:16 +01:00
drbd_wrappers.h
Kconfig drbd: Kconfig fix 2009-12-29 17:38:28 +01:00
Makefile drbd: remove tracing bits 2009-10-01 21:17:58 +02:00