Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=968a5763fb7247feb0e69573a2975a7a0c094267 Commit: 968a5763fb7247feb0e69573a2975a7a0c094267 Parent: 80dc3e062a8f82acd5852df15f6b4bc3359de871 Author: Ed Lin <[EMAIL PROTECTED]> AuthorDate: Thu Jul 5 12:09:06 2007 -0700 Committer: James Bottomley <[EMAIL PROTECTED]> CommitDate: Sat Jul 14 18:59:10 2007 -0500
[SCSI] stex: use resid for xfer len information The original implementation in stex_ys_commands() is inappropriate. For xfer len information, we should use resid instead. Signed-off-by: Ed Lin <[EMAIL PROTECTED]> Signed-off-by: James Bottomley <[EMAIL PROTECTED]> --- drivers/scsi/stex.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c index adda296..72f6d80 100644 --- a/drivers/scsi/stex.c +++ b/drivers/scsi/stex.c @@ -719,8 +719,8 @@ static void stex_ys_commands(struct st_hba *hba, if (ccb->cmd->cmnd[0] == MGT_CMD && resp->scsi_status != SAM_STAT_CHECK_CONDITION) { - scsi_bufflen(ccb->cmd) = - le32_to_cpu(*(__le32 *)&resp->variable[0]); + scsi_set_resid(ccb->cmd, scsi_bufflen(ccb->cmd) - + le32_to_cpu(*(__le32 *)&resp->variable[0])); return; } - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html