]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost: fix the fd leak
authorLi Feng <fengli@smartx.com>
Mon, 31 Jul 2023 12:10:06 +0000 (20:10 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 4 Aug 2023 16:14:46 +0000 (19:14 +0300)
commitfd902c54e57fc3e0d1daef3dd979a1dd47caa2e5
tree686a2f1a31802a848d2b93b140a5568519238f8c
parent18963f458f71da2535e1c367ea66165d0cd9fd33
vhost: fix the fd leak

When the vhost-user reconnect to the backend, the notifer should be
cleanup. Otherwise, the fd resource will be exhausted.

Fixes: f9a09ca3ea ("vhost: add support for configure interrupt")
Signed-off-by: Li Feng <fengli@smartx.com>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Message-Id: <20230731121018.2856310-2-fengli@smartx.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Fiona Ebner <f.ebner@proxmox.com>
(cherry picked from commit 18f2971ce403008d5e1c2875b483c9d1778143dc)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/virtio/vhost.c