mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Add calls to mutex_destroy in virtio_balloon and virtio_mem
@ 2025-11-23 17:57 Maurice Hieronymus
  2025-11-23 17:57 ` [PATCH 1/2] virtio-balloon: Destroy mutex before freeing virtio_balloon Maurice Hieronymus
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Maurice Hieronymus @ 2025-11-23 17:57 UTC (permalink / raw)
  To: david, mst, jasowang; +Cc: virtualization, linux-kernel, Maurice Hieronymus

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-11-24  9:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-23 17:57 [PATCH 0/2] Add calls to mutex_destroy in virtio_balloon and virtio_mem Maurice Hieronymus
2025-11-23 17:57 ` [PATCH 1/2] virtio-balloon: Destroy mutex before freeing virtio_balloon Maurice Hieronymus
2025-11-24  9:43   ` David Hildenbrand (Red Hat)
2025-11-23 17:57 ` [PATCH 2/2] virtio-mem: Destroy mutex before freeing virtio_mem Maurice Hieronymus
2025-11-24  9:43   ` David Hildenbrand (Red Hat)
2025-11-24  9:42 ` [PATCH 0/2] Add calls to mutex_destroy in virtio_balloon and virtio_mem David Hildenbrand (Red Hat)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®