Alex Landau writes: open firmware for reading, not writing
This commit is contained in:
parent
d8540f71ac
commit
0e0639b702
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user