diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-06-16 23:34:38 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-06-16 23:34:38 +0000 |
commit | 11776310f4b99c471d3443e40134d9f99e64562c (patch) | |
tree | 324ae3edbd935229e8280184e7ff986de9820fcf /package/mtd/src/fis.c | |
parent | 63f2a286ce8a6ca565535de046cc7450b145c44c (diff) | |
download | upstream-11776310f4b99c471d3443e40134d9f99e64562c.tar.gz upstream-11776310f4b99c471d3443e40134d9f99e64562c.tar.bz2 upstream-11776310f4b99c471d3443e40134d9f99e64562c.zip |
[package] mtd: request locked pages when mmap'ing the FIS table, cures random segfaults in table rewrite until
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=2d4dc890b5c8fabd818a8586607e6843c4375e62
is added.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21823 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mtd/src/fis.c')
-rw-r--r-- | package/mtd/src/fis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mtd/src/fis.c b/package/mtd/src/fis.c index b285d24db4..559ca95069 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; |