[PATCH 1/5] vfio: Fix the ROM mask

From: Alex Williamson
Date: Sat Oct 30 2010 - 12:59:30 EST


OR in the enable address, don't set the whole mask with it.

Signed-off-by: Alex Williamson <alex.williamson@xxxxxxxxxx>
---

drivers/vfio/vfio_pci_config.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/vfio/vfio_pci_config.c b/drivers/vfio/vfio_pci_config.c
index 88deb19..8af995d 100644
--- a/drivers/vfio/vfio_pci_config.c
+++ b/drivers/vfio/vfio_pci_config.c
@@ -797,7 +797,7 @@ static void vfio_bar_fixup(struct vfio_dev *vdev)

if (pci_resource_start(pdev, PCI_ROM_RESOURCE)) {
mask = ~(pci_resource_len(pdev, PCI_ROM_RESOURCE) - 1);
- mask = PCI_ROM_ADDRESS_ENABLE;
+ mask |= PCI_ROM_ADDRESS_ENABLE;
} else
mask = 0;
lp = (u32 *)(vdev->vconfig + PCI_ROM_ADDRESS);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/