Potential NULL pointer deference in scsi: scsi_transport_spi

From: Yizhuo Zhai
Date: Mon Oct 07 2019 - 16:30:21 EST


Hi All:

drivers/scsi/scsi_transport_spi.c:

Inside function store_spi_transport_period(), dev_to_shost()
could return NULL, however, the return value shost is not
checked and get used. This could potentially be unsafe.

--
Kind Regards,

Yizhuo Zhai

Computer Science, Graduate Student
University of California, Riverside