diff options
| author | Hannes Reinecke <hare@suse.de> | 2021-06-22 12:11:53 +0300 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-06-23 04:50:15 +0300 |
| commit | c43ddbf97f46b93727718408d60a47ce8c08f30c (patch) | |
| tree | 78711da39b15de7eb5a5dddf81f0b96ba55572b6 /scripts/gcc-plugins/gcc-generate-rtl-pass.h | |
| parent | 49da96d77938db21864dae6b7736b71e96c1d203 (diff) | |
| download | linux-c43ddbf97f46b93727718408d60a47ce8c08f30c.tar.xz | |
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: 464a00c9e0ad ("scsi: core: Kill DRIVER_SENSE")
Tested-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions
