Skip to content

Commit

Permalink
Merge remote-tracking branch 'kraxel/CVE-2011-1751' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Liguori committed May 25, 2011
2 parents 6093d3d + 505597e commit aa29141
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hw/acpi_piix4.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,11 +471,13 @@ static void pciej_write(void *opaque, uint32_t addr, uint32_t val)
BusState *bus = opaque;
DeviceState *qdev, *next;
PCIDevice *dev;
PCIDeviceInfo *info;
int slot = ffs(val) - 1;

QLIST_FOREACH_SAFE(qdev, &bus->children, sibling, next) {
dev = DO_UPCAST(PCIDevice, qdev, qdev);
if (PCI_SLOT(dev->devfn) == slot) {
info = container_of(qdev->info, PCIDeviceInfo, qdev);
if (PCI_SLOT(dev->devfn) == slot && !info->no_hotplug) {
qdev_free(qdev);
}
}
Expand Down

0 comments on commit aa29141

Please sign in to comment.