summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/mlx5/main.c
diff options
context:
space:
mode:
authorMustafa Ismail <mustafa.ismail@intel.com>2023-03-15 09:52:29 -0500
committerLeon Romanovsky <leon@kernel.org>2023-03-19 11:37:55 +0200
commitb69a6979dbaa2453675fe9c71bdc2497fedb11f9 (patch)
tree4191e636cc04602cad7da63e7f8e09ddb819c4f4 /drivers/infiniband/hw/mlx5/main.c
parent30ed9ee9a10a90ae719dcfcacead1d0506fa45ed (diff)
downloadlinux-b69a6979dbaa2453675fe9c71bdc2497fedb11f9.tar.gz
linux-b69a6979dbaa2453675fe9c71bdc2497fedb11f9.tar.bz2
linux-b69a6979dbaa2453675fe9c71bdc2497fedb11f9.zip
RDMA/irdma: Fix memory leak of PBLE objects
On rmmod of irdma, the PBLE object memory is not being freed. PBLE object memory are not statically pre-allocated at function initialization time unlike other HMC objects. PBLEs objects and the Segment Descriptors (SD) for it can be dynamically allocated during scale up and SD's remain allocated till function deinitialization. Fix this leak by adding IRDMA_HMC_IW_PBLE to the iw_hmc_obj_types[] table and skip pbles in irdma_create_hmc_obj but not in irdma_del_hmc_objects(). Fixes: 44d9e52977a1 ("RDMA/irdma: Implement device initialization definitions") Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com> Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com> Link: https://lore.kernel.org/r/20230315145231.931-3-shiraz.saleem@intel.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/main.c')
0 files changed, 0 insertions, 0 deletions