qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] hw/rdma: Destroy list mutex when list is destroyed


From: Marcel Apfelbaum
Subject: Re: [PATCH] hw/rdma: Destroy list mutex when list is destroyed
Date: Tue, 14 Apr 2020 11:09:23 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1

Hi Yuval,

On 4/13/20 11:57 AM, Yuval Shaia wrote:
List mutex should be destroyed when gs list gets destroyed.

Reported-by: Peter Maydell <address@hidden>
Signed-off-by: Yuval Shaia <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;
      }
  }

Reviewed-by: Marcel Apfelbaum<address@hidden>

Thanks,
Marcel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]