]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/hns: Fix PD memory leak for internal allocation
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 20 May 2019 06:43:53 +0000 (09:43 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 21 May 2019 18:25:37 +0000 (15:25 -0300)
commit619122be3d40c835eb5fad9e326780909926495d
tree736bb617053a779e81ad5652a4d806799a5eae03
parentdc1435c00fcd102c9803cd6120701ba5547138d5
RDMA/hns: Fix PD memory leak for internal allocation

free_pd is allocated internally by the driver hence needs to be freed
internally too or it leaks.

Fixes: 21a428a019c9 ("RDMA: Handle PD allocations by IB/core")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c