diff options
author | Yuval Shaia <yuval.shaia@oracle.com> | 2018-08-05 18:35:13 +0300 |
---|---|---|
committer | Marcel Apfelbaum <marcel.apfelbaum@gmail.com> | 2018-08-18 18:00:22 +0300 |
commit | 7131c4b028b09c8545a16614b38aefdd4a77b0b4 (patch) | |
tree | a732a0d34c7deb89e8a35c4e2d0875dd31b2bb43 /hw | |
parent | 4c408c9d5b3f648a2f100edf6287a7c7ce63f634 (diff) | |
download | qemu-7131c4b028b09c8545a16614b38aefdd4a77b0b4.zip qemu-7131c4b028b09c8545a16614b38aefdd4a77b0b4.tar.gz qemu-7131c4b028b09c8545a16614b38aefdd4a77b0b4.tar.bz2 |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/rdma/rdma_rm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/rdma/rdma_rm.c b/hw/rdma/rdma_rm.c index bf4a5c7..1f014b4 100644 --- a/hw/rdma/rdma_rm.c +++ b/hw/rdma/rdma_rm.c @@ -543,8 +543,9 @@ void rdma_rm_fini(RdmaDeviceResources *dev_res) res_tbl_free(&dev_res->uc_tbl); res_tbl_free(&dev_res->cqe_ctx_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->cq_tbl); res_tbl_free(&dev_res->pd_tbl); + g_hash_table_destroy(dev_res->qp_hash); } |