Merge fix missed on previous commit.

This commit is contained in:
Ian Romanick 2007-02-14 15:38:10 -08:00
parent 16eb7254f8
commit e540d572c5

View File

@ -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;