mirror of
https://github.com/torvalds/linux.git
synced 2024-12-06 11:01:43 +00:00
5cad5a5072
Dan Carpenter found a possible NULL pointer dereference issue in function
pqi_sas_port_add_rphy():
drivers/scsi/smartpqi/smartpqi_sas_transport.c:97
pqi_sas_port_add_rphy() warn: variable dereferenced before
check 'pqi_sas_port->device' (see line 95)
Correct issue by moving reference of pqi_sas_port->device after the check
for the device pointer being non-NULL.
Link: https://www.mail-archive.com/kbuild@lists.01.org/msg06329.html
Link: https://lore.kernel.org/r/161850493026.7302.10032784239320437353.stgit@brunhilda
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
smartpqi_init.c | ||
smartpqi_sas_transport.c | ||
smartpqi_sis.c | ||
smartpqi_sis.h | ||
smartpqi.h |