[PATCH 6.1 115/228] RDMA/mlx4: Make check for invalid flags stricter