]> git.ipfire.org Git - thirdparty/linux.git/commit
virtio-mem: Destroy mutex before freeing virtio_mem
authorMaurice Hieronymus <mhi@mailbox.org>
Sun, 23 Nov 2025 17:57:49 +0000 (18:57 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Jun 2026 06:16:59 +0000 (02:16 -0400)
commit7cdaeef19bc87bb93f3083b11dda92e3e9ff855c
tree78b1bc6c406757d242bbd794c6c4171aa1312727
parent7c59cc9cf729092512b88ccd3290b2fd0c7e53c4
virtio-mem: Destroy mutex before freeing virtio_mem

Add a call to mutex_destroy in the error code path as well as in the
virtio_mem_remove code path.

Signed-off-by: Maurice Hieronymus <mhi@mailbox.org>
Acked-by: David Hildenbrand (Red Hat) <david@kernel.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20251123175750.445461-3-mhi@mailbox.org>
drivers/virtio/virtio_mem.c