diff options
| author | Yishai Hadas <yishaih@nvidia.com> | 2026-09-15 17:09:33 +0300 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-09-28 08:13:15 -0400 |
| commit | 86959c7d009f60c57e1fd97a8f65fc40f6d5881c (patch) | |
| tree | 7ccdba325ab83d7f4b2f7cd1008ce733f8b1d855 /tools/lib/python/kdoc/python_version.py | |
| parent | 829a0e65deff3f826a7870a52404aeaf1a3fec3f (diff) | |
RDMA/mlx5: Fix signed integer overflow in EQE qp_srq type shift
eqe->data.qp_srq.type is a u8. Shifting it left by MLX5_USER_INDEX_LEN
(24) without a cast promotes it to signed int, causing undefined
behaviour for values >= 128.
All currently used type values are well below 128, so this does not
manifest with current hardware. Cast to u32 before the shift to make the
code well-defined across the full range.
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://patch.msgid.link/20260915140933.40580-16-yishaih@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
