diff options
author | Selvin Xavier <selvin.xavier@emulex.com> | 2014-02-04 10:27:02 +0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-04-03 19:30:03 +0400 |
commit | 9d1878a369b23f48a5ca5bcbd89abb0e569c58cc (patch) | |
tree | f73be5a3cc6ce126a163962ba42e5519277e22f2 /drivers/infiniband | |
parent | 2e6e9f2bb894e902b7fbd3f6865719eaa8306b6c (diff) | |
download | linux-9d1878a369b23f48a5ca5bcbd89abb0e569c58cc.tar.xz |
RDMA/ocrdma: Memory leak fix in ocrdma_dereg_mr()
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c index c5b40583f1ae..8cc00d2a06af 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c @@ -840,8 +840,7 @@ int ocrdma_dereg_mr(struct ib_mr *ib_mr) status = ocrdma_mbx_dealloc_lkey(dev, mr->hwmr.fr_mr, mr->hwmr.lkey); - if (mr->hwmr.fr_mr == 0) - ocrdma_free_mr_pbl_tbl(dev, &mr->hwmr); + ocrdma_free_mr_pbl_tbl(dev, &mr->hwmr); /* it could be user registered memory. */ if (mr->umem) |