diff --git a/hw/xfree86/os-support/bus/linuxPci.c b/hw/xfree86/os-support/bus/linuxPci.c index c8f43c94d..b88fae6c7 100644 --- a/hw/xfree86/os-support/bus/linuxPci.c +++ b/hw/xfree86/os-support/bus/linuxPci.c @@ -402,7 +402,7 @@ linuxMapPci(int ScreenNum, int Flags, struct pci_device *dev, * will fail gracefully. */ prot = ((Flags & VIDMEM_READONLY) == 0); - if (((fd = linuxPciOpenFile(Tag, prot)) < 0) || + if (((fd = linuxPciOpenFile(dev, prot)) < 0) || (ioctl(fd, mmap_ioctl, 0) < 0)) break;