linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Potential NULL pointer deference in scsi
@ 2019-10-07 20:34 Yizhuo Zhai
  0 siblings, 0 replies; only message in thread
From: Yizhuo Zhai @ 2019-10-07 20:34 UTC (permalink / raw)
  To: James E.J. Bottomley, Martin K. Petersen, linux-scsi,
	linux-kernel, Zhiyun Qian, Chengyu Song

Hi All:

drivers/scsi/scsi.c:

Inside function __starget_for_each_device(), 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-07 20:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07 20:34 Potential NULL pointer deference in scsi Yizhuo Zhai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).