OSDN Git Service

Alex Landau writes: open firmware for reading, not writing
authorMike Frysinger <vapier@gentoo.org>
Thu, 14 Jun 2007 09:29:48 +0000 (09:29 -0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 14 Jun 2007 09:29:48 +0000 (09:29 -0000)
util-linux/mdev.c

index fca4fd0..8743cdb 100644 (file)
@@ -241,7 +241,7 @@ static inline void load_firmware(const char * const firmware, const char * const
 
        /* check for /lib/firmware/$FIRMWARE */
        xchdir("/lib/firmware");
-       firmware_fd = xopen(firmware, O_WRONLY);
+       firmware_fd = xopen(firmware, O_RDONLY);
 
        /* in case we goto out ... */
        data_fd = -1;