summaryrefslogtreecommitdiff
path: root/drivers/ufs
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2023-07-24 23:08:30 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2023-07-26 04:34:35 +0300
commit89e637c19b2441aabc8dbf22a8745b932fd6996e (patch)
tree2f219f6193ebea824c123c5863e9d2cb3e42b4e5 /drivers/ufs
parent2903265e27bfc6dea915dd9e17a1b2587f621f73 (diff)
downloadlinux-89e637c19b2441aabc8dbf22a8745b932fd6996e.tar.xz
scsi: RDMA/srp: Fix residual handling
Although the code for residual handling in the SRP initiator follows the SCSI documentation, that documentation has never been correct. Because scsi_finish_command() starts from the data buffer length and subtracts the residual, scsi_set_resid() must not be called if a residual overflow occurs. Hence remove the scsi_set_resid() calls from the SRP initiator if a residual overflow occurrs. Cc: Leon Romanovsky <leon@kernel.org> Cc: Jason Gunthorpe <jgg@nvidia.com> Fixes: 9237f04e12cc ("scsi: core: Fix scsi_get/set_resid() interface") Fixes: e714531a349f ("IB/srp: Fix residual handling") Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20230724200843.3376570-3-bvanassche@acm.org Acked-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ufs')
0 files changed, 0 insertions, 0 deletions