aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdit Ranadive <[email protected]>2019-09-18 23:08:00 +0000
committerJason Gunthorpe <[email protected]>2019-10-01 10:47:58 -0300
commit18545e8b6871d21aa3386dc42867138da9948a33 (patch)
tree457ea82b1a94882cde1ee65663541e17d1d7c326
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c (diff)
RDMA/vmw_pvrdma: Free SRQ only once
An extra kfree cleanup was missed since these are now deallocated by core. Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Fixes: 68e326dea1db ("RDMA: Handle SRQ allocations by IB/core") Signed-off-by: Adit Ranadive <[email protected]> Reviewed-by: Vishnu Dasa <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
-rw-r--r--drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c
index 6cac0c88cf39..36cdfbdbd325 100644
--- a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c
+++ b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c
@@ -230,8 +230,6 @@ static void pvrdma_free_srq(struct pvrdma_dev *dev, struct pvrdma_srq *srq)
pvrdma_page_dir_cleanup(dev, &srq->pdir);
- kfree(srq);
-
atomic_dec(&dev->num_srqs);
}