diff options
Diffstat (limited to 'commands/mm.c')
-rw-r--r-- | commands/mm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/mm.c b/commands/mm.c index 6d2a887892..c7f62fca54 100644 --- a/commands/mm.c +++ b/commands/mm.c @@ -53,7 +53,7 @@ static int do_mem_mm(int argc, char *argv[]) value = simple_strtoull(argv[optind++], NULL, 0); mask = simple_strtoull(argv[optind++], NULL, 0); - fd = open_and_lseek(filename, mode | O_RDWR, adr); + fd = open_and_lseek(filename, mode | O_RDWR | O_CREAT, adr); if (fd < 0) return 1; |