linux/drivers/s390/block
Julia Lawall cf05b824db [S390] drivers/s390: put NULL test before dereference
If the NULL test on block is needed, it should be before the dereference of
the base field.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
expression E1,E2;
identifier fld;
statement S1,S2;
@@

E1 = E2->fld;
(
if (E1 == NULL) S1 else S2
|
*if (E2 == NULL) S1 else S2
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2009-08-23 18:10:00 +02:00
..
dasd_3990_erp.c [S390] dasd: message cleanup 2009-03-26 15:24:05 +01:00
dasd_alias.c [S390] dasd: message cleanup 2009-03-26 15:24:05 +01:00
dasd_devmap.c [S390] pm: dasd power management callbacks. 2009-06-16 10:31:10 +02:00
dasd_diag.c [S390] dasd: forward internal errors to dasd_sleep_on caller 2009-06-12 10:27:36 +02:00
dasd_diag.h
dasd_eckd.c [S390] dasd: correct debugfeature sense dump 2009-07-07 16:37:52 +02:00
dasd_eckd.h [S390] dasd: add High Performance FICON support 2009-03-26 15:24:05 +01:00
dasd_eer.c [S390] dasd: message cleanup 2009-03-26 15:24:05 +01:00
dasd_erp.c [S390] dasd: correct debugfeature sense dump 2009-07-07 16:37:52 +02:00
dasd_fba.c [S390] dasd: correct debugfeature sense dump 2009-07-07 16:37:52 +02:00
dasd_fba.h
dasd_genhd.c [S390] dasd: message cleanup 2009-03-26 15:24:05 +01:00
dasd_int.h [S390] dasd: correct debugfeature sense dump 2009-07-07 16:37:52 +02:00
dasd_ioctl.c headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00
dasd_proc.c proc 2/2: remove struct proc_dir_entry::owner 2009-03-31 01:14:44 +04:00
dasd.c [S390] drivers/s390: put NULL test before dereference 2009-08-23 18:10:00 +02:00
dcssblk.c [S390] improve suspend/resume error messages 2009-07-07 16:37:53 +02:00
Kconfig [S390] dasd: fix double elevator_exit call when deadline iosched fails to load 2008-04-17 07:46:55 +02:00
Makefile [S390] dasd: add hyper PAV support to DASD device driver, part 1 2008-01-26 14:11:28 +01:00
xpram.c [S390] improve suspend/resume error messages 2009-07-07 16:37:53 +02:00