diff options
author | Bart Van Assche <bvanassche@acm.org> | 2023-07-24 23:08:29 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-07-26 04:34:35 +0300 |
commit | 2903265e27bfc6dea915dd9e17a1b2587f621f73 (patch) | |
tree | 0a757e1aeadfba1caee1c53aa454063247b3731a /scripts/dtc/fdtoverlay.c | |
parent | 65aca38b8ce728bf5a449b74f2a6a344167dfb02 (diff) | |
download | linux-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 'scripts/dtc/fdtoverlay.c')
0 files changed, 0 insertions, 0 deletions