projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbf5ddc
)
[package] iwinfo: iwinfo_hardware_id_from_mtd() never writes, so do not request write...
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 20 Feb 2012 21:27:41 +0000
(21:27 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 20 Feb 2012 21:27:41 +0000
(21:27 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30664
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/iwinfo/src/iwinfo_utils.c
patch
|
blob
|
history
diff --git
a/package/iwinfo/src/iwinfo_utils.c
b/package/iwinfo/src/iwinfo_utils.c
index
78ea52b
..
5ca1016
100644
(file)
--- 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)
{