diff options
author | Bart Van Assche <bvanassche@acm.org> | 2023-07-24 13:08:29 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-07-25 21:34:35 -0400 |
commit | 2903265e27bfc6dea915dd9e17a1b2587f621f73 (patch) | |
tree | 0a757e1aeadfba1caee1c53aa454063247b3731a /scripts/modules-check.sh | |
parent | 65aca38b8ce728bf5a449b74f2a6a344167dfb02 (diff) | |
download | linux-stable-2903265e27bfc6dea915dd9e17a1b2587f621f73.tar.gz linux-stable-2903265e27bfc6dea915dd9e17a1b2587f621f73.tar.bz2 linux-stable-2903265e27bfc6dea915dd9e17a1b2587f621f73.zip |
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 'scripts/modules-check.sh')
0 files changed, 0 insertions, 0 deletions