aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Reinecke <[email protected]>2021-04-27 10:30:42 +0200
committerMartin K. Petersen <[email protected]>2021-05-31 22:48:24 -0400
commit0ee44f900e419efe00a72880256ef9c71cf60225 (patch)
treea67e037da2d8862bfae26563953792fd05d37378
parentb2e88c97c59186584ae6111246aee215ed6ec666 (diff)
scsi: fdomain: Translate message to host byte status
Instead of setting the message byte translate it to the appropriate host byte. As error recovery would return DID_ERROR for any non-zero message byte the translation doesn't change the error handling. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hannes Reinecke <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r--drivers/scsi/fdomain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c
index 294dbfa5c761..eda2be534aa7 100644
--- a/drivers/scsi/fdomain.c
+++ b/drivers/scsi/fdomain.c
@@ -361,8 +361,8 @@ static void fdomain_work(struct work_struct *work)
if (done) {
set_status_byte(cmd, cmd->SCp.Status);
- set_msg_byte(cmd, cmd->SCp.Message);
set_host_byte(cmd, DID_OK);
+ scsi_msg_to_host_byte(cmd, cmd->SCp.Message);
fdomain_finish_cmd(fd);
} else {
if (cmd->SCp.phase & disconnect) {