[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251123175750.445461-1-mhi@mailbox.org>
Date: Sun, 23 Nov 2025 18:57:47 +0100
From: Maurice Hieronymus <mhi@...lbox.org>
To: david@...nel.org,
mst@...hat.com,
jasowang@...hat.com
Cc: virtualization@...ts.linux.dev,
linux-kernel@...r.kernel.org,
Maurice Hieronymus <mhi@...lbox.org>
Subject: [PATCH 0/2] Add calls to mutex_destroy in virtio_balloon and virtio_mem
In [1] it is pointed out that each mutex_init call should have a
corresponding call to mutex_destroy; otherwise, it is considered a bug.
This patch adds the calls to mutex_destroy in virtio_balloon as well
as virtio_mem.
Link: https://lists.kernelnewbies.org/pipermail/kernelnewbies/2025-November/023493.html [1]
Maurice Hieronymus (2):
virtio-balloon: Destroy mutex before freeing virtio_balloon
virtio-mem: Destroy mutex before freeing virtio_mem
drivers/virtio/virtio_balloon.c | 2 ++
drivers/virtio/virtio_mem.c | 2 ++
2 files changed, 4 insertions(+)
base-commit: d13f3ac64efb868d09cb2726b1e84929afe90235
--
2.50.1
Powered by blists - more mailing lists