diff options
-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; |