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 fca4fd0528fb3fdf5fd16fb485614ef9b4e7b897..8743cdb6b617e77e171daeaad04b84d5f0ead8c0 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;