summaryrefslogtreecommitdiffstats
path: root/package/iwinfo/src
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-20 21:27:41 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-20 21:27:41 +0000
commitf7601b8246d79f83b3a176c28de8eba931460f17 (patch)
tree8b788d2d7c702daa5adfe95ae6cfec29bb2cc536 /package/iwinfo/src
parentb888530e4121a6c463e27d87f85ccb59df414a46 (diff)
[package] iwinfo: iwinfo_hardware_id_from_mtd() never writes, so do not request write access in mmap()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30664 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/iwinfo/src')
-rw-r--r--package/iwinfo/src/iwinfo_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/iwinfo/src/iwinfo_utils.c b/package/iwinfo/src/iwinfo_utils.c
index 78ea52b4a..5ca101683 100644
--- a/package/iwinfo/src/iwinfo_utils.c
+++ b/package/iwinfo/src/iwinfo_utils.c
@@ -184,7 +184,7 @@ int iwinfo_hardware_id_from_mtd(struct iwinfo_hardware_id *id)
if ((fd = open(buf, O_RDONLY)) < 0)
return -1;
- bc = mmap(NULL, len, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_LOCKED, fd, 0);
+ bc = mmap(NULL, len, PROT_READ, MAP_PRIVATE|MAP_LOCKED, fd, 0);
if ((void *)bc != MAP_FAILED)
{