diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-06-29 09:07:37 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-07-12 15:41:27 +0300 |
commit | d64b1ee12a168030fbb3e0aebf7bce49e9a07589 (patch) | |
tree | 1c36f2dc0dd0f8e9bee7e880ea93bebd824f64b1 /scripts/gdb/linux/utils.py | |
parent | 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff) | |
download | linux-d64b1ee12a168030fbb3e0aebf7bce49e9a07589.tar.xz |
RDMA/mlx4: Make check for invalid flags stricter
This code is trying to ensure that only the flags specified in the list
are allowed. The problem is that ucmd->rx_hash_fields_mask is a u64 and
the flags are an enum which is treated as a u32 in this context. That
means the test doesn't check whether the highest 32 bits are zero.
Fixes: 4d02ebd9bbbd ("IB/mlx4: Fix RSS hash fields restrictions")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/233ed975-982d-422a-b498-410f71d8a101@moroto.mountain
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions