mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-06 02:39:06 -05:00
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: Hannes Reinecke <[email protected]> Reported-by: Robert Elliott <[email protected]> Cc: Stephen Cameron <[email protected]> Tested-by: Robert Elliott <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
This commit is contained in:
parent
95eeb5f588
commit
ac61d19559
1 changed files with 1 additions and 0 deletions
|
|
@ -1029,6 +1029,7 @@ retry:
|
|||
rtn = NEEDS_RETRY;
|
||||
} else {
|
||||
timeleft = wait_for_completion_timeout(&done, timeout);
|
||||
rtn = SUCCESS;
|
||||
}
|
||||
|
||||
shost->eh_action = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue