projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[ifxmips]
[openwrt.git]
/
package
/
mtd
/
src
/
fis.c
diff --git
a/package/mtd/src/fis.c
b/package/mtd/src/fis.c
index b285d24db4735aa77c6caf127ab2cb7ca3f3b92d..559ca95069a510cd6f76e66ca0d5cfafe3cb4a6f 100644
(file)
--- a/
package/mtd/src/fis.c
+++ b/
package/mtd/src/fis.c
@@
-77,7
+77,7
@@
fis_open(void)
goto error;
fis_erasesize = erasesize;
- desc = mmap(NULL, erasesize, PROT_READ|PROT_WRITE, MAP_SHARED, fis_fd, 0);
+ desc = mmap(NULL, erasesize, PROT_READ|PROT_WRITE, MAP_SHARED
|MAP_LOCKED
, fis_fd, 0);
if (desc == MAP_FAILED)
goto error;