linux/include/ufs
Bart Van Assche 2903265e27 scsi: ufs: Fix residual handling
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>
2023-07-25 21:34:35 -04:00
..
ufs_quirks.h scsi: ufs: core: Remove HPB support 2023-07-23 16:40:39 -04:00
ufs.h scsi: ufs: Fix residual handling 2023-07-25 21:34:35 -04:00
ufshcd.h scsi: ufs: core: Remove HPB support 2023-07-23 16:40:39 -04: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