WSL2-Linux-Kernel/drivers/scsi/pm8001
Dan Carpenter 2471b89406 [SCSI] pm8001: potential null dereference in pm8001_dev_gone_notify()
In the original code we dereferenced "pm8001_dev" before checking if it
was null.  This patch moves the dereference inside the condition.

This was found by a static checker (smatch).  I looked, but I couldn't
tell if "pm8001_dev" dev was ever actually null.  The approach in this
patch seemed like the safest response.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jack Wang <jack_wang@usish.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-05-02 11:04:23 -04:00
..
Makefile [SCSI] pm8001: add SAS/SATA HBA driver 2009-12-04 12:00:40 -06:00
pm8001_chips.h [SCSI] pm8001: add SAS/SATA HBA driver 2009-12-04 12:00:40 -06:00
pm8001_ctl.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
pm8001_ctl.h [SCSI] pm8001: enable read HBA SAS address from VPD 2009-12-10 10:09:23 -06:00
pm8001_defs.h [SCSI] pm8001: add SAS/SATA HBA driver 2009-12-04 12:00:40 -06:00
pm8001_hwi.c [SCSI] pm8001: drop redundant memset 2010-04-11 09:23:30 -05:00
pm8001_hwi.h [SCSI] pm8001: fix endian issues with SAS address 2009-12-10 10:02:22 -06:00
pm8001_init.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
pm8001_sas.c [SCSI] pm8001: potential null dereference in pm8001_dev_gone_notify() 2010-05-02 11:04:23 -04:00
pm8001_sas.h [SCSI] pm8001: misc code cleanup 2009-12-10 10:10:56 -06:00