aboutsummaryrefslogtreecommitdiff
path: root/hw/msi.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-06-07 19:26:20 +0200
committerMichael S. Tsirkin <mst@redhat.com>2011-06-12 10:33:38 +0300
commit4dad7f1ec51e13b40d2554d666cc122ed898d8e6 (patch)
treee514c90f946367d9c45e6706c0dab92711197593 /hw/msi.c
parentd3674c5754775eb65ec2f2fd5f8cfe9b032ca0b1 (diff)
msi: Fix copy&paste mistake in msi_uninit
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/msi.c')
-rw-r--r--hw/msi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/msi.c b/hw/msi.c
index b0795bd708..941b339c68 100644
--- a/hw/msi.c
+++ b/hw/msi.c
@@ -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");