Skip to contentSkip to conversation

msi: Fix copy&paste mistake in msi_uninit

PATCH Applied Jan Kiszka 2 participants 2 messages Jun 7, 2011 – Jun 8, 2011

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 msi: Fix copy&paste mistake in msi_uninit

---
 hw/msi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/msi.c +1 -1
index b087fe5..e8c5607 100644
@@ -172,7 +172,7 @@ void msi_uninit(struct PCIDevice *dev)
     }
     flags = pci_get_word(dev->config + msi_flags_off(dev));
     cap_size = msi_cap_sizeof(flags);
-    pci_del_capability(dev, PCI_CAP_ID_MSIX, cap_size);
+    pci_del_capability(dev, PCI_CAP_ID_MSI, cap_size);
     dev->cap_present &= ~QEMU_PCI_CAP_MSI;
 
     MSI_DEV_PRINTF(dev, "uninit\n");
Signature · 1 line
1.7.1
#1 lore raw
Quoted 1 line · Jan Kiszka

Applied, thanks!

Quoted 19 lines
---
 hw/msi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/msi.c +1 -1
index b087fe5..e8c5607 100644
@@ -172,7 +172,7 @@ void msi_uninit(struct PCIDevice *dev)
     }
     flags = pci_get_word(dev->config + msi_flags_off(dev));
     cap_size = msi_cap_sizeof(flags);
-    pci_del_capability(dev, PCI_CAP_ID_MSIX, cap_size);
+    pci_del_capability(dev, PCI_CAP_ID_MSI, cap_size);
     dev->cap_present &= ~QEMU_PCI_CAP_MSI;
 
     MSI_DEV_PRINTF(dev, "uninit\n");
Signature · 1 line
1.7.1