Don't try to write boot_vga since that fails with EACCES
authorAaron Plattner <aplattner@nvidia.com>
Fri, 1 May 2009 22:04:19 +0000 (15:04 -0700)
committerAaron Plattner <aplattner@nvidia.com>
Fri, 1 May 2009 22:04:19 +0000 (15:04 -0700)
src/linux_sysfs.c

index 5afa7d2..1ae9e52 100644 (file)
@@ -716,7 +716,7 @@ static int pci_device_linux_sysfs_boot_vga(struct pci_device *dev)
              dev->dev,
              dev->func );
     
-    fd = open( name, O_RDWR );
+    fd = open( name, O_RDONLY );
     if (fd == -1)
        return 0;