X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a24b24783cc1b889136b3ba26e2a1bf29029a0f7..5f4dbbbf5c5c907ef6cc6df18e3a0ae26d799d3e:/package/mtd/src/fis.c?ds=sidebyside diff --git a/package/mtd/src/fis.c b/package/mtd/src/fis.c index b285d24db..559ca9506 100644 --- 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;