projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c47613
)
hw/rdma: Destroy list mutex when list is destroyed
author
Yuval Shaia
<yuval.shaia.ml@gmail.com>
Mon, 13 Apr 2020 08:57:38 +0000
(11:57 +0300)
committer
Marcel Apfelbaum
<marcel.apfelbaum@gmail.com>
Sat, 2 May 2020 18:31:17 +0000
(21:31 +0300)
List mutex should be destroyed when gs list gets destroyed.
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Yuval Shaia <yuval.shaia.ml@gmail.com>
Message-Id: <
20200413085738
.11145-1-yuval.shaia.ml@gmail.com>
Reviewed-by: Marcel Apfelbaum<marcel.apfelbaum@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/rdma/rdma_utils.c
patch
|
blob
|
history
diff --git
a/hw/rdma/rdma_utils.c
b/hw/rdma/rdma_utils.c
index 73f279104c37d10630b360ec7405faf691deb438..698ed4716c65e2ba59872b0d46b05ee1e9f05ad8 100644
(file)
--- 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;
}
}