9
0
Fork 0

state: mtd_get_meminfo: open path readonly instead of readwrite

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
Marc Kleine-Budde 2015-05-25 13:54:40 +02:00 committed by Jan Luebbe
parent a571c94254
commit 6fecafad03
1 changed files with 1 additions and 1 deletions

View File

@ -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;