linux-stable/include/ufs
Bart Van Assche b648bd321b scsi: ufs: Fix residual handling
[ Upstream commit 2903265e27 ]

Only call scsi_set_resid() in case of an underflow. Do not call
scsi_set_resid() in case of an overflow.

Cc: Avri Altman <avri.altman@wdc.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Fixes: cb38845d90 ("scsi: ufs: core: Set the residual byte count")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230724200843.3376570-2-bvanassche@acm.org
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:53:36 +02:00
..
ufs.h scsi: ufs: Fix residual handling 2023-09-13 09:53:36 +02:00
ufs_quirks.h
ufshcd.h SCSI misc on 20230629 2023-06-30 11:57:07 -07:00
ufshci.h Merge patch series "ufs: core: mcq: Add ufshcd_abort() and error handler support in MCQ mode" 2023-05-31 20:19:31 -04:00
unipro.h scsi: ufs: ufs: Remove duplicate entry 2023-01-18 18:24:24 -05:00