]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] Fix command result state propagation
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 28 Mar 2014 17:51:15 +0000 (10:51 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 21 Apr 2014 17:40:05 +0000 (10:40 -0700)
commit1a868fe865204652dd0f477b24dbfc46e282427f
treebdf8825070f03d622ff3fa715f3ad5f19513bb4f
parent84dc95129c1fa6eb20c36dda9b0c6d44bffc1258
[SCSI] Fix command result state propagation

We're seeing a case where the contents of scmd->result isn't being reset after
a SCSI command encounters an error, is resubmitted, times out and then gets
handled.  The error handler acts on the stale result of the previous error
instead of the timeout.  Fix this by properly zeroing the scmd->status before
the command is resubmitted.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_error.c
drivers/scsi/scsi_lib.c