diff options
| author | 2021-04-27 10:30:45 +0200 | |
|---|---|---|
| committer | 2021-05-31 22:48:24 -0400 | |
| commit | 14b40c1e7ccc07e486719362f6f29ec5e3151331 (patch) | |
| tree | 8452c84427dcc1c562b1d62122d4093894644558 /drivers/target/target_core_xcopy.c | |
| parent | scsi: core: Kill message byte (diff) | |
| download | wireguard-linux-14b40c1e7ccc07e486719362f6f29ec5e3151331.tar.xz wireguard-linux-14b40c1e7ccc07e486719362f6f29ec5e3151331.zip | |
scsi: target: Use standard SAM status types
target_complete_cmd() and friends requires a SAM status type, so passing
GOOD here is actually wrong.
Link: https://lore.kernel.org/r/20210427083046.31620-40-hare@suse.de
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target/target_core_xcopy.c')
| -rw-r--r-- | drivers/target/target_core_xcopy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_xcopy.c b/drivers/target/target_core_xcopy.c index 2e7ce661ef32..0f1319336f3e 100644 --- a/drivers/target/target_core_xcopy.c +++ b/drivers/target/target_core_xcopy.c @@ -998,7 +998,7 @@ static sense_reason_t target_rcr_operating_parameters(struct se_cmd *se_cmd) put_unaligned_be32(42, &p[0]); transport_kunmap_data_sg(se_cmd); - target_complete_cmd(se_cmd, GOOD); + target_complete_cmd(se_cmd, SAM_STAT_GOOD); return TCM_NO_SENSE; } |
