Changeset 30664


Ignore:
Timestamp:
2012-02-20T22:27:41+01:00 (6 years ago)
Author:
jow
Message:

[package] iwinfo: iwinfo_hardware_id_from_mtd() never writes, so do not request write access in mmap()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/iwinfo/src/iwinfo_utils.c

    r30663 r30664  
    185185                return -1; 
    186186 
    187         bc = mmap(NULL, len, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_LOCKED, fd, 0); 
     187        bc = mmap(NULL, len, PROT_READ, MAP_PRIVATE|MAP_LOCKED, fd, 0); 
    188188 
    189189        if ((void *)bc != MAP_FAILED) 
Note: See TracChangeset for help on using the changeset viewer.