From e540d572c5acba877b3ce01e7b31e399dac2d44a Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 14 Feb 2007 15:38:10 -0800 Subject: [PATCH] Merge fix missed on previous commit. --- hw/xfree86/os-support/bus/linuxPci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;