hw/rdma: Destroy list mutex when list is destroyed
PATCH 1/1 hw/rdma: Destroy list mutex when list is destroyed
List mutex should be destroyed when gs list gets destroyed.
Reported-by Peter Maydell <[email protected]>
Signed-off-by Yuval Shaia <[email protected]>
--- hw/rdma/rdma_utils.c | 1 + 1 file changed, 1 insertion(+)
hw/rdma/rdma_utils.c +1 -0
@@ -100,6 +100,7 @@ void rdma_protected_gslist_destroy(RdmaProtectedGSList *list) {if (list->list) {g_slist_free (list->list); +qemu_mutex_destroy (&list->lock); list->list =NULL ; } }
Signature · 1 line
2.20.1
Hi Yuval,
Quoted 13 lines · Yuval Shaia
List mutex should be destroyed when gs list gets destroyed.
Reported-by Peter Maydell <[email protected]>Signed-off-by Yuval Shaia <[email protected]>--- hw/rdma/rdma_utils.c | 1 + 1 file changed, 1 insertion(+)hw/rdma/rdma_utils.c +0
-0
hw/rdma/rdma_utils.c void rdma_protected_gslist_destroy(RdmaProtectedGSList *list) · line 106
Quoted 7 lines
hw/rdma/rdma_utils.c +1
-0@@ -100,6 +100,7 @@ void rdma_protected_gslist_destroy(RdmaProtectedGSList *list) {if (list->list) {g_slist_free (list->list); +qemu_mutex_destroy (&list->lock); list->list =NULL ; } }
Reviewed-by Marcel Apfelbaum<[email protected]>
Thanks,
Marcel