linux_dsm_epyc7002/drivers/infiniband/core
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
..
addr.c
agent.c
agent.h
cache.c RDMA/core: Fix empty gid table for non IB/RoCE devices 2020-12-07 16:32:04 -04:00
cgroup.c
cm_msgs.h
cm_trace.c
cm_trace.h
cm.c RDMA/cm: Fix an attempt to use non-valid pointer when cleaning timewait 2020-12-09 15:51:35 -04:00
cma_configfs.c RDMA/cma: Fix error flow in default_roce_mode_store 2021-01-27 11:55:08 +01:00
cma_priv.h
cma_trace.c
cma_trace.h
cma.c RDMA/cma: Don't overwrite sgid_attr after device is released 2020-12-30 11:53:53 +01:00
core_priv.h
counters.c
cq.c
device.c RDMA/core: remove use of dma_virt_ops 2021-01-09 13:46:24 +01:00
ib_core_uverbs.c
iwcm.c
iwcm.h
iwpm_msg.c
iwpm_util.c
iwpm_util.h
lag.c
mad_priv.h
mad_rmpp.c
mad_rmpp.h
mad.c
Makefile
mr_pool.c
multicast.c
netlink.c
nldev.c
opa_smi.h
packer.c
rdma_core.c
rdma_core.h
restrack.c RDMA/restrack: Don't treat as an error allocation ID wrapping 2021-01-19 18:27:31 +01:00
restrack.h
roce_gid_mgmt.c
rw.c RDMA/core: remove use of dma_virt_ops 2021-01-09 13:46:24 +01:00
sa_query.c
sa.h
security.c
smi.c
smi.h
sysfs.c
trace.c
ucma.c RDMA/ucma: Do not miss ctx destruction steps in some cases 2021-01-27 11:55:05 +01:00
ud_header.c
umem_odp.c
umem.c RDMA/umem: Avoid undefined behavior of rounddown_pow_of_two() 2021-01-27 11:55:08 +01:00
user_mad.c
uverbs_cmd.c
uverbs_ioctl.c
uverbs_main.c
uverbs_marshall.c
uverbs_std_types_async_fd.c
uverbs_std_types_counters.c
uverbs_std_types_cq.c
uverbs_std_types_device.c RDMA/uverbs: Fix incorrect variable type 2020-12-30 11:53:47 +01:00
uverbs_std_types_dm.c
uverbs_std_types_flow_action.c
uverbs_std_types_mr.c RDMA/core: Track device memory MRs 2020-12-30 11:53:24 +01:00
uverbs_std_types_qp.c
uverbs_std_types_srq.c
uverbs_std_types_wq.c
uverbs_std_types.c
uverbs_uapi.c
uverbs.h
verbs.c RDMA/core: Fix error return in _ib_modify_qp() 2020-12-30 11:52:58 +01:00