diff options
author | Gedare Bloom <gedare@rtems.org> | 2017-07-24 14:46:49 -0400 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2017-07-24 14:46:49 -0400 |
commit | b264998fa9ef2b048950ba81f3d1615c8f9a182d (patch) | |
tree | 9c9bccd9936c293d6ee47b4c86d80c38c9130db9 /cpukit/posix/src/munmap.c | |
parent | tmtests/tmcontext01: Prevent GCC 7.1 optimizations (diff) | |
download | rtems-b264998fa9ef2b048950ba81f3d1615c8f9a182d.tar.bz2 |
posix: replace mmap mappings lock with libio lock
Use the libio mutex lock instead of the mmap mappings lock.
Updates #2859.
Diffstat (limited to 'cpukit/posix/src/munmap.c')
-rw-r--r-- | cpukit/posix/src/munmap.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cpukit/posix/src/munmap.c b/cpukit/posix/src/munmap.c index 6bd79cc0ef..fb9bb872e0 100644 --- a/cpukit/posix/src/munmap.c +++ b/cpukit/posix/src/munmap.c @@ -52,11 +52,7 @@ int munmap(void *addr, size_t len) return -1; } - /* - * Obtain the mmap lock. Sets errno on failure. - */ - if ( !mmap_mappings_lock_obtain( )) - return -1; + mmap_mappings_lock_obtain(); node = rtems_chain_first (&mmap_mappings); while ( !rtems_chain_is_tail( &mmap_mappings, node )) { |