WSL2-Linux-Kernel/drivers/infiniband/core
Miaoqian Lin 2990f223ff RDMA/cm: Fix memory leak in ib_cm_insert_listen
cm_alloc_id_priv() allocates resource for the cm_id_priv. When
cm_init_listen() fails it doesn't free it, leading to memory leak.

Add the missing error unwind.

Fixes: 98f67156a8 ("RDMA/cm: Simplify establishing a listen cm_id")
Link: https://lore.kernel.org/r/20220621052546.4821-1-linmq006@gmail.com
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2022-06-24 16:41:03 -03:00
..
Makefile
addr.c RDMA/core: Delete useless module.h include 2022-01-28 13:03:12 -04:00
agent.c
agent.h
cache.c RDMA/core: Delete useless module.h include 2022-01-28 13:03:12 -04:00
cgroup.c
cm.c RDMA/cm: Fix memory leak in ib_cm_insert_listen 2022-06-24 16:41:03 -03:00
cm_msgs.h
cm_trace.c
cm_trace.h
cma.c v5.18 merge window pull request 2022-03-24 19:17:39 -07:00
cma_configfs.c RDMA/core: Delete useless module.h include 2022-01-28 13:03:12 -04:00
cma_priv.h
cma_trace.c
cma_trace.h
core_priv.h
counters.c
cq.c RDMA/core: Delete useless module.h include 2022-01-28 13:03:12 -04:00
device.c RDMA/core: Avoid flush_workqueue(system_unbound_wq) usage 2022-04-25 16:04:53 -03:00
ib_core_uverbs.c
iwcm.c
iwcm.h
iwpm_msg.c
iwpm_util.c
iwpm_util.h RDMA/core: Delete useless module.h include 2022-01-28 13:03:12 -04:00
lag.c
mad.c
mad_priv.h
mad_rmpp.c
mad_rmpp.h
mr_pool.c
multicast.c
netlink.c
nldev.c RDMA: Split kernel-only global device caps from uverbs device caps 2022-04-06 15:02:13 -03:00
opa_smi.h
packer.c
rdma_core.c
rdma_core.h
restrack.c
restrack.h
roce_gid_mgmt.c
rw.c mm: don't include <linux/memremap.h> in <linux/mm.h> 2022-03-03 12:47:33 -05:00
sa.h
sa_query.c IB/SA: Replace usage of found with dedicated list iterator variable 2022-04-08 13:53:22 -03:00
security.c
smi.c
smi.h
sysfs.c
trace.c
ucma.c RDMA/ucma: Protect mc during concurrent multicast leaves 2022-01-28 11:36:55 -04:00
ud_header.c
umem.c
umem_dmabuf.c RDMA: use DMA_RESV_USAGE_KERNEL 2022-04-07 12:53:54 +02:00
umem_odp.c IB/core: Fix typo in comment 2022-05-24 11:24:58 -03:00
user_mad.c
uverbs.h
uverbs_cmd.c RDMA: Split kernel-only global device caps from uverbs device caps 2022-04-06 15:02:13 -03:00
uverbs_ioctl.c
uverbs_main.c
uverbs_marshall.c RDMA/core: Don't infoleak GRH fields 2022-01-05 16:30:19 -04:00
uverbs_std_types.c
uverbs_std_types_async_fd.c
uverbs_std_types_counters.c
uverbs_std_types_cq.c
uverbs_std_types_device.c
uverbs_std_types_dm.c
uverbs_std_types_flow_action.c RDMA/core: Delete IPsec flow action logic from the core 2022-04-09 08:25:06 +03:00
uverbs_std_types_mr.c
uverbs_std_types_qp.c Revert "RDMA/core: Fix ib_qp_usecnt_dec() called when error" 2022-03-14 20:39:21 -03:00
uverbs_std_types_srq.c
uverbs_std_types_wq.c
uverbs_uapi.c
verbs.c RDMA: Split kernel-only global device caps from uverbs device caps 2022-04-06 15:02:13 -03:00