diff options
-rw-r--r-- | 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 adda296b594..72f6d801535 100644 --- a/drivers/scsi/stex.c +++ b/drivers/scsi/stex.c | |||
@@ -719,8 +719,8 @@ static void stex_ys_commands(struct st_hba *hba, | |||
719 | 719 | ||
720 | if (ccb->cmd->cmnd[0] == MGT_CMD && | 720 | if (ccb->cmd->cmnd[0] == MGT_CMD && |
721 | resp->scsi_status != SAM_STAT_CHECK_CONDITION) { | 721 | resp->scsi_status != SAM_STAT_CHECK_CONDITION) { |
722 | scsi_bufflen(ccb->cmd) = | 722 | scsi_set_resid(ccb->cmd, scsi_bufflen(ccb->cmd) - |
723 | le32_to_cpu(*(__le32 *)&resp->variable[0]); | 723 | le32_to_cpu(*(__le32 *)&resp->variable[0])); |
724 | return; | 724 | return; |
725 | } | 725 | } |
726 | 726 | ||