Alex Landau writes: open firmware for reading, not writing

This commit is contained in:
Mike Frysinger 2007-06-14 09:29:48 +00:00
parent d8540f71ac
commit 0e0639b702

View File

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