hw/rdma: Destroy list mutex when list is destroyed
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>
This commit is contained in:
parent
1c47613588
commit
a5cde048e8
@ -100,6 +100,7 @@ void rdma_protected_gslist_destroy(RdmaProtectedGSList *list)
|
|||||||
{
|
{
|
||||||
if (list->list) {
|
if (list->list) {
|
||||||
g_slist_free(list->list);
|
g_slist_free(list->list);
|
||||||
|
qemu_mutex_destroy(&list->lock);
|
||||||
list->list = NULL;
|
list->list = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user