Commit ac61d195 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Christoph Hellwig

scsi: set correct completion code in scsi_send_eh_cmnd()

->queuecommand returns '0' for successful command submission,
so we need to set the correct SCSI midlayer return value
when calling scsi_log_completion().
Signed-off-by: default avatarHannes Reinecke <>
Reported-by: default avatarRobert Elliott <>
Cc: Stephen Cameron <>
Tested-by: default avatarRobert Elliott <>
Signed-off-by: default avatarChristoph Hellwig <>
parent 95eeb5f5
......@@ -1029,6 +1029,7 @@ static int scsi_send_eh_cmnd(struct scsi_cmnd *scmd, unsigned char *cmnd,
} else {
timeleft = wait_for_completion_timeout(&done, timeout);
rtn = SUCCESS;
shost->eh_action = NULL;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment