linux/drivers/infiniband/hw
Mark Bloch b1f2d446fd 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:22:38 +01:00
..
bnxt_re RDMA/bnxt_re: Set queue pair state when being queried 2020-12-30 11:25:49 +01:00
cxgb3 RDMA/providers: Remove pointless functions 2018-07-30 20:31:54 -06:00
cxgb4 RDMA/cxgb4: Validate the number of CQEs 2020-12-30 11:25:56 +01:00
hfi1 IB/hfi1: Fix memory leaks in sysfs registration and unregistration 2020-04-13 10:45:11 +02:00
hns RDMA/hns: Fix missing sq_sig_type when querying QP 2020-10-30 10:38:20 +01:00
i40iw RDMA/i40iw: Address an mmap handler exploit in i40iw 2020-12-08 10:18:55 +01:00
mlx4 IB/mlx4: Adjust delayed work when a dup is observed 2020-10-29 09:55:15 +01:00
mlx5 RDMA/mlx5: Fix wrong free of blue flame register on error 2021-01-19 18:22:38 +01:00
mthca RDMa/mthca: Work around -Wenum-conversion warning 2020-12-30 11:25:53 +01:00
nes RDMA/providers: Remove pointless functions 2018-07-30 20:31:54 -06:00
ocrdma RDMA/ocrdma: Fix out of bounds index check in query pkey 2020-01-27 14:50:12 +01:00
qedr RDMA/qedr: Fix memory leak in iWARP CM 2020-11-05 11:08:38 +01:00
qib IB/qib: Call kobject_put() when kobject_init_and_add() fails 2020-06-03 08:19:36 +02:00
usnic RDMA/usnic: Fix memleak in find_free_vf_and_create_qp_grp 2021-01-19 18:22:38 +01:00
vmw_pvrdma RDMA/pvrdma: Fix missing pci disable in pvrdma_pci_probe() 2020-06-03 08:19:37 +02:00
Makefile