]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Add missing check for return value in get namespace flow
authorMaor Gottlieb <maorg@nvidia.com>
Sun, 31 Jul 2022 08:29:08 +0000 (11:29 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 2 Aug 2022 16:57:27 +0000 (13:57 -0300)
commit3a2a4536bfddb0888a6739ef7327eca8f1ee53b8
tree4a4314920101151486a26ccb9e2da23f5fe2fc77
parent495c7e84092367e8e54b954f38d73d242f7b6c37
RDMA/mlx5: Add missing check for return value in get namespace flow

Add missing check for return value when calling to
mlx5_ib_ft_type_to_namespace, even though it can't really fail in this
specific call.

Fixes: 05bfa671a490 ("RDMA/mlx5: Allow inserting a steering rule to the FDB")
Link: https://lore.kernel.org/r/7b9ceda217d9368a51dc47a46b769bad4af9ac92.1659256069.git.leonro@nvidia.com
Reviewed-by: Itay Aveksis <itayav@nvidia.com>
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/fs.c