diff options
| author | wangshuaiwei <wangshuaiwei1@xiaomi.com> | 2026-02-24 14:32:28 +0800 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2026-02-24 14:23:07 -0500 |
| commit | 2f38fd99c0004676d835ae96ac4f3b54edc02c82 (patch) | |
| tree | 911565ade4ab1a6fe48b47cbdc7fb6a4c0b707a7 /scripts/bash-completion | |
| parent | 62c015373e1cdb1cdca824bd2dbce2dac0819467 (diff) | |
scsi: ufs: core: Fix shift out of bounds when MAXQ=32
According to JESD223F, the maximum number of queues (MAXQ) is 32. When MCQ
is enabled and ESI is disabled, nr_hw_queues=32 causes a shift overflow
problem.
Fix this by using 64-bit intermediate values to handle the nr_hw_queues=32
case safely.
Signed-off-by: wangshuaiwei <wangshuaiwei1@xiaomi.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20260224063228.50112-1-wangshuaiwei1@xiaomi.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/bash-completion')
0 files changed, 0 insertions, 0 deletions
