linux-stable/drivers/ufs
Bart Van Assche d431b85179 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:48:27 +02:00
..
core scsi: ufs: Fix residual handling 2023-09-13 09:48:27 +02:00
host scsi: ufs: ufs-qcom: Clear qunipro_g4_sel for HW major version > 5 2023-08-30 14:52:43 +02:00
Kconfig
Makefile