OpenCloudOS-Kernel/drivers/infiniband/sw/rxe
Christophe JAILLET 7f60951ff4 RDMA/rxe: Fix an error handling path in rxe_get_mcg()
The commit in the Fixes tag has shuffled some code.
Now 'mcg_num' is incremented before the kzalloc(). So if the memory
allocation fails, this increment must be undone.

Fixes: a926a903b7 ("RDMA/rxe: Do not call dev_mc_add/del() under a spinlock")
Link: https://lore.kernel.org/r/fe137cd8b1f17593243aa73d59c18ea71ab9ee36.1653225896.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2022-05-24 12:55:12 -03:00
..
Kconfig RDMA/rxe: Fix missing kconfig dependency on CRYPTO 2021-03-01 14:46:31 -04:00
Makefile RDMA/rxe: Delete deprecated module parameters interface 2022-01-05 15:18:47 -04:00
rxe.c RDMA: Split kernel-only global device caps from uverbs device caps 2022-04-06 15:02:13 -03:00
rxe.h RDMA/rxe: Delete useless module.h include 2022-01-28 13:03:13 -04:00
rxe_av.c RDMA/rxe: Use standard names for ref counting 2022-03-16 10:34:42 -03:00
rxe_comp.c RDMA/rxe: Check rxe_get() return value 2022-05-09 09:03:45 -03:00
rxe_cq.c RDMA/rxe: Revert changes from irqsave to bh locks 2022-02-16 11:51:28 -04:00
rxe_hdr.h RDMA/rxe: Remove unused pkt->offset 2021-02-16 14:42:59 -04:00
rxe_hw_counters.c RDMA/counter: Add a descriptor in struct rdma_hw_stats 2021-10-12 12:48:04 -03:00
rxe_hw_counters.h RDMA: Split the alloc_hw_stats() ops to port and device variants 2021-06-16 20:58:29 -03:00
rxe_icrc.c RDMA/rxe: Fix types in rxe_icrc.c 2021-07-16 12:43:35 -03:00
rxe_loc.h RDMA/rxe: Move qp cleanup code to rxe_qp_do_cleanup() 2022-05-09 09:03:45 -03:00
rxe_mcast.c RDMA/rxe: Fix an error handling path in rxe_get_mcg() 2022-05-24 12:55:12 -03:00
rxe_mmap.c RDMA/rxe: Delete useless module.h include 2022-01-28 13:03:13 -04:00
rxe_mr.c RDMA/rxe: Move mr cleanup code to rxe_mr_cleanup() 2022-05-09 09:03:45 -03:00
rxe_mw.c RDMA/rxe: Move mw cleanup code to rxe_mw_cleanup() 2022-05-09 09:03:45 -03:00
rxe_net.c RDMA/rxe: Use standard names for ref counting 2022-03-16 10:34:42 -03:00
rxe_net.h RDMA/rxe: Add SPDX hdrs to rxe source files 2020-08-31 12:20:02 -03:00
rxe_opcode.c RDMA/rxe: Remove support for SMI QPs from rdma_rxe 2022-04-08 14:38:33 -03:00
rxe_opcode.h RDMA/rxe: Remove unused WR_READ_WRITE_OR_SEND_MASK 2021-09-28 11:42:24 -03:00
rxe_param.h RDMA/rxe: Remove type 2A memory window capability 2022-04-08 14:37:17 -03:00
rxe_pool.c RDMA/rxe: Move mw cleanup code to rxe_mw_cleanup() 2022-05-09 09:03:45 -03:00
rxe_pool.h RDMA/rxe: Optimize the mr pool struct 2022-05-04 22:02:58 -03:00
rxe_qp.c RDMA/rxe: Enforce IBA C11-17 2022-05-09 09:03:45 -03:00
rxe_queue.c RDMA/rxe: Revert changes from irqsave to bh locks 2022-02-16 11:51:28 -04:00
rxe_queue.h RDMA/rxe: Add memory barriers to kernel queues 2021-09-24 10:14:59 -03:00
rxe_recv.c RDMA/rxe: Remove support for SMI QPs from rdma_rxe 2022-04-08 14:38:33 -03:00
rxe_req.c RDMA/rxe: Check rxe_get() return value 2022-05-09 09:03:45 -03:00
rxe_resp.c Linux 5.18 2022-05-24 12:40:28 -03:00
rxe_srq.c RDMA/rxe: Add rxe_srq_cleanup() 2022-05-09 09:03:39 -03:00
rxe_task.c RDMA/rxe: Replace irqsave locks with bh locks 2021-11-19 13:29:14 -04:00
rxe_task.h RDMA/rxe: Convert tasklets to use new tasklet_setup() API 2020-09-03 12:01:53 -03:00
rxe_verbs.c RDMA/rxe: Enforce IBA C11-17 2022-05-09 09:03:45 -03:00
rxe_verbs.h RDMA/rxe: Enforce IBA C11-17 2022-05-09 09:03:45 -03:00