[PATCH 6.4 099/239] RDMA/mlx4: Make check for invalid flags stricter