diff mbox

device-assignment: Clear assigned_dev irq type

Message ID 20100629175103.5078.11134.stgit@localhost.localdomain (mailing list archive)
State New, archived
Headers show

Commit Message

Alex Williamson June 29, 2010, 5:51 p.m. UTC
None
diff mbox

Patch

diff --git a/hw/device-assignment.c b/hw/device-assignment.c
index 585162b..48ac73c 100644
--- a/hw/device-assignment.c
+++ b/hw/device-assignment.c
@@ -1044,7 +1044,7 @@  static void assigned_dev_update_msi(PCIDevice *pci_dev, unsigned int ctrl_pos)
         if (r && r != -ENXIO)
             perror("assigned_dev_update_msi: deassign irq");
 
-        assigned_irq_data.flags = 0;
+        assigned_dev->irq_requested_type = 0;
     }
 
     if (ctrl_byte & PCI_MSI_FLAGS_ENABLE) {
@@ -1208,7 +1208,7 @@  static void assigned_dev_update_msix(PCIDevice *pci_dev, unsigned int ctrl_pos)
         if (r && r != -ENXIO)
             perror("assigned_dev_update_msix: deassign irq");
 
-        assigned_irq_data.flags = 0;
+        assigned_dev->irq_requested_type = 0;
     }
 
     if (*ctrl_word & PCI_MSIX_ENABLE) {