1
0
Fork 0
alistair23-linux/drivers/infiniband/hw
Mark Bloch 40a7822935 RDMA/mlx5: Fix wrong free of blue flame register on error
commit 1c3aa6bd0b upstream.

If the allocation of the fast path blue flame register fails, the driver
should free the regular blue flame register allocated a statement above,
not the one that it just failed to allocate.

Fixes: 16c1975f10 ("IB/mlx5: Create profile infrastructure to add and remove stages")
Link: https://lore.kernel.org/r/20210113121703.559778-6-leon@kernel.org
Reported-by: Hans Petter Selasky <hanss@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-19 18:26:18 +01:00
..
bnxt_re RDMA/bnxt_re: Set queue pair state when being queried 2020-12-30 11:51:02 +01:00
cxgb3 RDMA/{cxgb3, cxgb4, i40iw}: Remove common code 2019-08-12 10:19:43 -04:00
cxgb4 RDMA/cxgb4: Validate the number of CQEs 2020-12-30 11:51:11 +01:00
efa RDMA/efa: Clear the admin command buffer prior to its submission 2019-12-31 16:45:28 +01:00
hfi1 RDMA/hfi1: Correct an interlock issue for TID RDMA WRITE request 2020-08-26 10:40:52 +02:00
hns RDMA/hns: Bugfix for memory window mtpt configuration 2020-12-02 08:49:54 +01:00
i40iw RDMA/i40iw: Address an mmap handler exploit in i40iw 2020-12-08 10:40:28 +01:00
mlx4 IB/mlx4: Adjust delayed work when a dup is observed 2020-10-29 09:57:46 +01:00
mlx5 RDMA/mlx5: Fix wrong free of blue flame register on error 2021-01-19 18:26:18 +01:00
mthca RDMa/mthca: Work around -Wenum-conversion warning 2020-12-30 11:51:07 +01:00
ocrdma RDMA/ocrdma: Fix use after free in ocrdma_dealloc_ucontext_pd() 2021-01-19 18:26:12 +01:00
qedr RDMA/qedr: Fix memory leak in iWARP CM 2020-11-05 11:43:12 +01:00
qib IB/qib: Call kobject_put() when kobject_init_and_add() fails 2020-06-03 08:21:19 +02:00
usnic RDMA/usnic: Fix memleak in find_free_vf_and_create_qp_grp 2021-01-19 18:26:18 +01:00
vmw_pvrdma RDMA/pvrdma: Fix missing kfree() in pvrdma_register_device() 2020-11-24 13:29:05 +01:00
Makefile rdma: Remove nes 2019-06-13 09:59:49 -04:00