linux_dsm_epyc7002/drivers/s390
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
..
block [S390] drivers/s390: put NULL test before dereference 2009-08-23 18:10:00 +02:00
char [S390] improve suspend/resume error messages 2009-07-07 16:37:53 +02:00
cio [S390] cio: fix double free after failed device initialization 2009-08-23 18:10:00 +02:00
crypto [S390] zcrypt: fix scheduling of hrtimer ap_poll_timer 2009-07-24 12:41:02 +02:00
kvm virtio: find_vqs/del_vqs virtio operations 2009-06-12 22:16:36 +09:30
net [S390] driver_data access 2009-06-22 12:08:23 +02:00
scsi [SCSI] zfcp: Fix tracing of request id for abort requests 2009-07-30 08:49:59 -05:00
Makefile [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00