[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 1/1] hw/rdma: Destroy list mutex when list is destroy
From: |
Marcel Apfelbaum |
Subject: |
[Qemu-devel] [PULL 1/1] hw/rdma: Destroy list mutex when list is destroyed |
Date: |
Sat, 2 May 2020 22:18:42 +0300 |
From: Yuval Shaia <address@hidden>
List mutex should be destroyed when gs list gets destroyed.
Reported-by: Peter Maydell <address@hidden>
Signed-off-by: Yuval Shaia <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Marcel Apfelbaum<address@hidden>
Signed-off-by: Marcel Apfelbaum <address@hidden>
---
hw/rdma/rdma_utils.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/rdma/rdma_utils.c b/hw/rdma/rdma_utils.c
index 73f279104c..698ed4716c 100644
--- a/hw/rdma/rdma_utils.c
+++ b/hw/rdma/rdma_utils.c
@@ -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;
}
}
--
2.17.2