On Thu, 29 Jun 2023 09:07:37 +0300, Dan Carpenter wrote: > 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. > > Applied, thanks! [1/1] RDMA/mlx4: Make check for invalid flags stricter https://git.kernel.org/rdma/rdma/c/d64b1ee12a1680 Best regards, -- Leon Romanovsky <leon@xxxxxxxxxx>