From 2eb6ca3080896c63a4ab4a51ef21d5550be75b44 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 20 Feb 2012 21:27:41 +0000 Subject: [PATCH] [package] iwinfo: iwinfo_hardware_id_from_mtd() never writes, so do not request write access in mmap() SVN-Revision: 30664 --- package/iwinfo/src/iwinfo_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/iwinfo/src/iwinfo_utils.c b/package/iwinfo/src/iwinfo_utils.c index 78ea52b4ab..5ca101683f 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) { -- 2.30.2