Re: [PATCH] scsi: Let scsi_execute_cmd() mark args->sshdr as invalid

From: Martin K. Petersen
Date: Tue May 16 2023 - 22:07:15 EST



Juergen,

> Some callers of scsi_execute_cmd() (like e.g. sd_spinup_disk()) are
> passing an uninitialized struct sshdr and don't look at the return
> value of scsi_execute_cmd() before looking at the contents of that
> struct.

Which callers? sd_spinup_disk() appears to do the right thing...

--
Martin K. Petersen Oracle Linux Engineering