Leon Romanovsky fb448ce87a 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>
2020-07-30 11:03:33 -03:00
..
2020-01-25 15:11:37 -04:00
2020-06-02 20:32:54 -03:00
2020-03-04 14:28:25 -04:00
2020-06-02 20:32:53 -03:00
2019-06-28 21:18:23 -03:00
2020-05-12 11:47:48 -03:00
2018-12-12 07:40:16 -07:00
2018-12-12 07:40:16 -07:00
2020-06-02 20:32:54 -03:00
2020-06-02 20:32:54 -03:00