]> Git Repo - qemu.git/commitdiff
hw/rdma: Reorder resource cleanup
authorYuval Shaia <[email protected]>
Sun, 5 Aug 2018 15:35:13 +0000 (18:35 +0300)
committerMarcel Apfelbaum <[email protected]>
Sat, 18 Aug 2018 15:00:22 +0000 (18:00 +0300)
To be consistence with allocation do the reverse order in deallocation

Signed-off-by: Yuval Shaia <[email protected]>
Reviewed-by: Marcel Apfelbaum <[email protected]>
Message-Id: <20180805153518[email protected]>
Signed-off-by: Marcel Apfelbaum <[email protected]>
hw/rdma/rdma_rm.c

index bf4a5c71b456fdac4d0672a6f5f6bac4fc7aef10..1f014b4ab2c22aa3769bbb59e93ae82daebb861a 100644 (file)
@@ -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->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->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);
 }
This page took 0.024081 seconds and 4 git commands to generate.