diff options
| author | Nick Kralevich <nnk@google.com> | 2013-07-02 12:28:03 -0700 |
|---|---|---|
| committer | Nick Kralevich <nnk@google.com> | 2013-07-02 12:31:07 -0700 |
| commit | 553a5ec407ddc922ffca7f542e280b6150396cb9 (patch) | |
| tree | b33489ad10a2bc2163fb3ee49f7069cb35330ad5 /libc/malloc_hooks/tests/malloc_hooks_tests.cpp | |
| parent | c6ac3ae269c9fb30bed9c4faf46276ac46abf2e3 (diff) | |
mmap: Don't call madvise if mmap fails
Fix improper check of return value from __mmap2. On a failed
mmap(), it returns MAP_FAILED, not 0. This ended up clobbering errno
when madvise subsequently failed.
Change-Id: I364fb2f158fe258c55a73e552195384b2c11c193
Diffstat (limited to 'libc/malloc_hooks/tests/malloc_hooks_tests.cpp')
0 files changed, 0 insertions, 0 deletions
