On 14/07/2023 22:33, Mike Christie wrote:
If scsi_execute_cmd returns < 0, it doesn't initialize the sshdr, so we shouldn't access the sshdr. If it returns 0, then the cmd executed successfully, so there is no need to check the sshdr. This has us access the sshdr when get a return value > 0. Signed-off-by: Mike Christie<michael.christie@xxxxxxxxxx> Reviewed-by: Christoph Hellwig<hch@xxxxxx>
Reviewed-by: John Garry <john.g.garry@xxxxxxxxxx>