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
Loading
Please sign in to comment