RDMA/mlx4: Return missed an error if device doesn't support steering
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 12 Oct 2021 07:28:43 +0000 (10:28 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 12 Oct 2021 16:23:23 +0000 (13:23 -0300)
commitf4e56ec4452f48b8292dcf0e1c4bdac83506fb8b
treea474fe18b33e6de75b8496d192a4f3ca98785bdf
parent9d8f247cc33c881812d2ae106a79292c0d0446b8
RDMA/mlx4: Return missed an error if device doesn't support steering

The error flow fixed in this patch is not possible because all kernel
users of create QP interface check that device supports steering before
set IB_QP_CREATE_NETIF_QP flag.

Fixes: c1c98501121e ("IB/mlx4: Add support for steerable IB UD QPs")
Link: https://lore.kernel.org/r/91c61f6e60eb0240f8bbc321fda7a1d2986dd03c.1634023677.git.leonro@nvidia.com
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx4/qp.c