hw/rdma: Reorder resource cleanup
To be consistence with allocation do the reverse order in deallocation Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Message-Id: <20180805153518.2983-9-yuval.shaia@oracle.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
This commit is contained in:
parent
4c408c9d5b
commit
7131c4b028
@ -543,8 +543,9 @@ void rdma_rm_fini(RdmaDeviceResources *dev_res)
|
|||||||
res_tbl_free(&dev_res->uc_tbl);
|
res_tbl_free(&dev_res->uc_tbl);
|
||||||
res_tbl_free(&dev_res->cqe_ctx_tbl);
|
res_tbl_free(&dev_res->cqe_ctx_tbl);
|
||||||
res_tbl_free(&dev_res->qp_tbl);
|
res_tbl_free(&dev_res->qp_tbl);
|
||||||
res_tbl_free(&dev_res->cq_tbl);
|
|
||||||
res_tbl_free(&dev_res->mr_tbl);
|
res_tbl_free(&dev_res->mr_tbl);
|
||||||
|
res_tbl_free(&dev_res->cq_tbl);
|
||||||
res_tbl_free(&dev_res->pd_tbl);
|
res_tbl_free(&dev_res->pd_tbl);
|
||||||
|
|
||||||
g_hash_table_destroy(dev_res->qp_hash);
|
g_hash_table_destroy(dev_res->qp_hash);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user