aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-07-12 11:05:21 +0100
committerPeter Maydell <peter.maydell@linaro.org>2018-07-12 11:05:21 +0100
commit87130a0d43158f046873a7de7e1df45c45d6c8a8 (patch)
tree9e2e895376ed79f038fbbe8bcdc0dbae810fdb44
parent7411faed38a146a4331620747e278a9f55dbfbef (diff)
parent26c0ae56386edacc8b0da40264748f59afedb1bb (diff)
Merge remote-tracking branch 'remotes/awilliam/tags/vfio-fixes-20180711.1' into staging
VFIO fixes 2018-07-11 - Avoid RAMBlock segfault in option ROM teardown for vfio-pci devices (Cédric Le Goater) # gpg: Signature made Wed 11 Jul 2018 20:44:44 BST # gpg: using RSA key 239B9B6E3BB08B22 # gpg: Good signature from "Alex Williamson <alex.williamson@redhat.com>" # gpg: aka "Alex Williamson <alex@shazbot.org>" # gpg: aka "Alex Williamson <alwillia@redhat.com>" # gpg: aka "Alex Williamson <alex.l.williamson@gmail.com>" # Primary key fingerprint: 42F6 C04E 540B D1A9 9E7B 8A90 239B 9B6E 3BB0 8B22 * remotes/awilliam/tags/vfio-fixes-20180711.1: vfio/pci: do not set the PCIDevice 'has_rom' attribute Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/vfio/pci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index a1577dea7f..6cbb8fa054 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -990,7 +990,6 @@ static void vfio_pci_size_rom(VFIOPCIDevice *vdev)
pci_register_bar(&vdev->pdev, PCI_ROM_SLOT,
PCI_BASE_ADDRESS_SPACE_MEMORY, &vdev->pdev.rom);
- vdev->pdev.has_rom = true;
vdev->rom_read_failed = false;
}