]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
RDMA/core: Free DIM memory in error unwind
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 30 Jul 2020 08:27:19 +0000 (11:27 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 30 Jul 2020 14:03:33 +0000 (11:03 -0300)
commitfb448ce87a4a9482b084e67faf804aec79ed9b43
tree59d9c6a8888601f619e5812638a0086483ac3f7a
parent5d46b289d04b98eb992b2f8b67745cc0953e16b1
RDMA/core: Free DIM memory in error unwind

The memory allocated for the DIM wasn't freed in in error unwind path, fix
it by calling to rdma_dim_destroy().

Fixes: da6629793aa6 ("RDMA/core: Provide RDMA DIM support for ULPs")
Link: https://lore.kernel.org/r/20200730082719.1582397-4-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com <mailto:maxg@mellanox.com>>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/cq.c