summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2023-07-24 23:08:29 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2023-07-26 04:34:35 +0300
commit2903265e27bfc6dea915dd9e17a1b2587f621f73 (patch)
tree0a757e1aeadfba1caee1c53aa454063247b3731a /mm
parent65aca38b8ce728bf5a449b74f2a6a344167dfb02 (diff)
downloadlinux-2903265e27bfc6dea915dd9e17a1b2587f621f73.tar.xz
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: cb38845d90fc ("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>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions