linux-stable/include/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
..
ufs.h scsi: ufs: Fix residual handling 2023-09-13 09:48:27 +02:00
ufs_quirks.h
ufshcd.h scsi: ufs: core: mcq: Fix the incorrect OCS value for the device command 2023-07-19 16:36:16 +02:00
ufshci.h scsi: ufs: core: mcq: Add Event Specific Interrupt enable and config functions 2023-01-13 21:10:59 -05:00
unipro.h scsi: ufs: ufs: Remove duplicate entry 2023-01-18 18:24:24 -05:00