The list was not being initialized, which could result in a crash in vpci_remove_device if no list items were added.
Signed-off-by: Stewart Hildebrand <[email protected]> --- xen/drivers/vpci/msix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/drivers/vpci/msix.c b/xen/drivers/vpci/msix.c index 25bde77586a4..1b98c3c10a64 100644 --- a/xen/drivers/vpci/msix.c +++ b/xen/drivers/vpci/msix.c @@ -678,6 +678,8 @@ static int cf_check init_msix(struct pci_dev *pdev) if ( !msix ) return -ENOMEM; + INIT_LIST_HEAD(&msix->next); + rc = vpci_add_register(pdev->vpci, control_read, control_write, msix_control_reg(msix_offset), 2, msix); if ( rc ) -- 2.40.0
