]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
msix: unset PCIDevice::msix_vector_poll_notifier in rollback
authorRobert Hoo <robert.hoo.linux@gmail.com>
Mon, 13 Nov 2023 08:13:49 +0000 (16:13 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 13 Dec 2023 15:51:00 +0000 (18:51 +0300)
In the rollback in msix_set_vector_notifiers(), original patch forgot to
undo msix_vector_poll_notifier pointer.

Fixes: bbef882cc193 ("msi: add API to get notified about pending bit poll")
Signed-off-by: Robert Hoo <robert.hoo.linux@gmail.com>
Message-Id: <20231113081349.1307-1-robert.hoo.linux@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 2d37fe9e5e61b04bddbed00dbb7436e61a01c115)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/pci/msix.c

index ab8869d9d073c5772b712f3104cf168d42d0a189..cd817f4ca8ec78f61fd21deddcda9a475fdaee1c 100644 (file)
@@ -648,6 +648,7 @@ undo:
     }
     dev->msix_vector_use_notifier = NULL;
     dev->msix_vector_release_notifier = NULL;
+    dev->msix_vector_poll_notifier = NULL;
     return ret;
 }