summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexander Chesnokov <Alexander.Chesnokov@kaspersky.com>2026-07-09 08:03:27 +0300
committerLeon Romanovsky <leon@kernel.org>2026-07-12 04:46:16 -0400
commit923e1cb4e525bb3d6dd9c72a2821f924794ef570 (patch)
tree2afe6d6142edb421b1ae41179be916b82a54293b /include/linux
parent234895fa8be06e5085ec07fb665d391a88aa5746 (diff)
RDMA/hns: Compute HEM index in 64-bit in hns_roce_v2_set_hem()
In hns_roce_v2_set_hem() the HEM address indices are computed from i, j and k (the base-chunk_ba_num decomposition of the 32-bit table_idx) in 32-bit arithmetic and then assigned to u64 fields. The recombined value always equals table_idx and cannot exceed U32_MAX, so this is not a reachable overflow and has no user-visible impact. Declare i, j and k as u64 so the calculation is done in 64-bit and the pattern no longer trips static analyzers. No functional change intended. Found by Linux Verification Center (linuxtesting.org) with SVACE. Suggested-by: David Laight <david.laight.linux@gmail.com> Signed-off-by: Alexander Chesnokov <Alexander.Chesnokov@kaspersky.com> Link: https://patch.msgid.link/20260709050327.3547237-1-Alexander.Chesnokov@kaspersky.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions