mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[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]>
This commit is contained in:
parent
80dc3e062a
commit
968a5763fb
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue