aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r--util-linux/mdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index fca4fd052..8743cdb6b 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -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;