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>
This commit is contained in:
parent
2e6e9f2bb8
commit
9d1878a369
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue