mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Martin K. Petersen
parent
a7479a8477
commit
14b40c1e7c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user