]> err.no Git - linux-2.6/commit
[SCSI] scsi_eh_prep_cmnd should save scmd->underflow
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 21 Jul 2008 14:25:52 +0000 (10:25 -0400)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 26 Jul 2008 19:14:56 +0000 (15:14 -0400)
commit12265709ac6e197f4d40d9ec1fd3af97b4196a35
tree479b48c2082e374b20f1767fef7768b6ea696f84
parentaf55ff675a8461da6a632320710b050af4366e0c
[SCSI] scsi_eh_prep_cmnd should save scmd->underflow

This patch (as1116) fixes a bug in scsi_eh_prep_cmnd() and
scsi_eh_restore_cmnd().  These routines are supposed to save any
values they change and restore them later, but someone forgot to
save & restore scmd->underflow.

This fixes part of the problem reported in Bugzilla #9638.

[jejb: fix up rejections around DIF/DIX]
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_error.c
include/scsi/scsi_eh.h