Skip to content

Commit

Permalink
msix: unset PCIDevice::msix_vector_poll_notifier in rollback
Browse files Browse the repository at this point in the history
In the rollback in msix_set_vector_notifiers(), original patch forgot to
undo msix_vector_poll_notifier pointer.

Fixes: bbef882 ("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 2d37fe9)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
robert-hz authored and Michael Tokarev committed Dec 5, 2023
1 parent f42d49a commit a34ae0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/pci/msix.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ int msix_set_vector_notifiers(PCIDevice *dev,
}
dev->msix_vector_use_notifier = NULL;
dev->msix_vector_release_notifier = NULL;
dev->msix_vector_poll_notifier = NULL;
return ret;
}

Expand Down

0 comments on commit a34ae0f

Please sign in to comment.