[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABvMjLSoa6WfdmvwCCPgAUtc1ZmQ8+14xrDnz5Q8MrpFstMDsg@mail.gmail.com>
Date: Mon, 7 Oct 2019 13:30:59 -0700
From: Yizhuo Zhai <yzhai003@....edu>
To: "James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
Chengyu Song <csong@...ucr.edu>,
Zhiyun Qian <zhiyunq@...ucr.edu>
Subject: Potential NULL pointer deference in scsi: scsi_transport_spi
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
Powered by blists - more mailing lists