diff --git a/common/state.c b/common/state.c index 655c9a63e..88eb6add4 100644 --- a/common/state.c +++ b/common/state.c @@ -900,7 +900,7 @@ static int mtd_get_meminfo(const char *path, struct mtd_info_user *meminfo) { int fd, ret; - fd = open(path, O_RDWR); + fd = open(path, O_RDONLY); if (fd < 0) return fd;