Commit d5f74773 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Connor O'Brien
Browse files

UPSTREAM: scsi: virtio_scsi: Do not overwrite SCSI status

When a sense code is present we should not override the SAM status; the
driver already sets it based on the response from the hypervisor.

In addition we should only copy the sense buffer if one is actually
provided by the hypervisor.

Link: https://lore.kernel.org/r/20210622091153.29231-1-hare@suse.de


Fixes: 464a00c9 ("scsi: core: Kill DRIVER_SENSE")
Tested-by: default avatarGuenter Roeck <linux@roeck-us.net>
Tested-by: default avatarJiri Slaby <jirislaby@kernel.org>
Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit c43ddbf9)
Bug: 187129171
Signed-off-by: default avatarConnor O'Brien <connoro@google.com>
Change-Id: I6a42c80e2cbd6786f2e08ebe4226f2cddfbb8e97
parent 973230a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment