]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/scsi/stex.c
Pull bugzilla-1641 into release branch
[linux-2.6-omap-h63xx.git] / drivers / scsi / stex.c
index adda296b594bfbd2389081990e441f1497802a15..72f6d8015358d6f52c967f51876d53cac2597c29 100644 (file)
@@ -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;
        }