]> www.infradead.org Git - users/dwmw2/qemu.git/commit
vfio/pci: Free leaked timer in vfio_realize error path
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Thu, 29 Jun 2023 08:40:39 +0000 (16:40 +0800)
committerCédric Le Goater <clg@redhat.com>
Fri, 30 Jun 2023 04:02:51 +0000 (06:02 +0200)
commit0cc889c8826cefa5b80110d31a62273b56aa1832
tree5b9f56310890e6c6a965869839c5c1b2c5ec2527
parent357bd7932a136613d700ee8bc83e9165f059d1f7
vfio/pci: Free leaked timer in vfio_realize error path

When vfio_realize fails, the mmap_timer used for INTx optimization
isn't freed. As this timer isn't activated yet, the potential impact
is just a piece of leaked memory.

Fixes: ea486926b07d ("vfio-pci: Update slow path INTx algorithm timer related")
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/pci.c