diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2009-05-01 15:04:19 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2009-05-01 15:04:19 -0700 |
commit | 8ba6b02ecfa5b03bbf2807e8262bb1253a026493 (patch) | |
tree | 02021a0a7a8ebf16619e36d0462d80722a196e9f /src | |
parent | b2838fb61c3542f107014b285cbda097acae1e12 (diff) |
Don't try to write boot_vga since that fails with EACCES
Diffstat (limited to 'src')
-rw-r--r-- | src/linux_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c index 5afa7d2..1ae9e52 100644 --- a/src/linux_sysfs.c +++ b/src/linux_sysfs.c @@ -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; |