diff options
author | Robert Hoo <robert.hoo.linux@gmail.com> | 2023-11-13 16:13:49 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-12-20 19:11:10 +0300 |
commit | 62b7c9015234bf472442031d38c1bf0e2f22a1e4 (patch) | |
tree | 424925d276b6ca105a47d63cb3410666aabe84f0 | |
parent | 95743c7a39c6804d5df78a7e247c3cb6fdb5f4d4 (diff) |
msix: unset PCIDevice::msix_vector_poll_notifier in rollback
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>
-rw-r--r-- | hw/pci/msix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pci/msix.c b/hw/pci/msix.c index 9e70fcd6fa..4b258566d4 100644 --- a/hw/pci/msix.c +++ b/hw/pci/msix.c @@ -639,6 +639,7 @@ undo: } dev->msix_vector_use_notifier = NULL; dev->msix_vector_release_notifier = NULL; + dev->msix_vector_poll_notifier = NULL; return ret; } |