linux_dsm_epyc7002/drivers/infiniband
Neta Ostrovsky 2cd90971a2 RDMA/cma: Fix error flow in default_roce_mode_store
[ Upstream commit 7c7b3e5d9aeed31d35c5dab0bf9c0fd4c8923206 ]

In default_roce_mode_store(), we took a reference to cma_dev, but didn't
return it with cma_dev_put in the error flow.

Fixes: 1c15b4f2a4 ("RDMA/core: Modify enum ib_gid_type and enum rdma_network_type")
Link: https://lore.kernel.org/r/20210113130214.562108-1-leon@kernel.org
Signed-off-by: Neta Ostrovsky <netao@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-01-27 11:55:08 +01:00
..
core RDMA/cma: Fix error flow in default_roce_mode_store 2021-01-27 11:55:08 +01:00
hw IB/mlx5: Fix error unwinding when set_has_smi_cap fails 2021-01-19 18:27:32 +01:00
sw RDMA/siw,rxe: Make emulated devices virtual in the device tree 2021-01-09 13:46:24 +01:00
ulp RDMA/rtrs-srv: Don't guard the whole __alloc_srv with srv_mutex 2020-12-30 11:52:59 +01:00
Kconfig RMDA/sw: Don't allow drivers using dma_virt_ops on highmem configs 2020-11-12 13:27:41 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00