diff options
author | Elliott Hughes <enh@google.com> | 2014-05-22 16:23:20 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-05-22 16:23:20 +0000 |
commit | 48ac3d1b14f036a4994adba22707f7465ccfae2f (patch) | |
tree | 7e55571b3320c53c5a554c45e04c1723f4f70ba1 /libpixelflinger/codeflinger/CodeCache.cpp | |
parent | cd3897d0af0c7b5a3b4913a2b0cca715fdfb890c (diff) | |
parent | 473a729937476d5e18b5e10b7b2eff119202fd46 (diff) | |
download | system_core-48ac3d1b14f036a4994adba22707f7465ccfae2f.zip system_core-48ac3d1b14f036a4994adba22707f7465ccfae2f.tar.gz system_core-48ac3d1b14f036a4994adba22707f7465ccfae2f.tar.bz2 |
Merge "Judge mmap failed by MAP_FAILED instead of NULL"
Diffstat (limited to 'libpixelflinger/codeflinger/CodeCache.cpp')
-rw-r--r-- | libpixelflinger/codeflinger/CodeCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpixelflinger/codeflinger/CodeCache.cpp b/libpixelflinger/codeflinger/CodeCache.cpp index 7446da2..8afe0a9 100644 --- a/libpixelflinger/codeflinger/CodeCache.cpp +++ b/libpixelflinger/codeflinger/CodeCache.cpp @@ -89,7 +89,7 @@ static mspace getMspace() gExecutableStore = mmap(NULL, kMaxCodeCacheCapacity, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, fd, 0); - LOG_ALWAYS_FATAL_IF(gExecutableStore == NULL, + LOG_ALWAYS_FATAL_IF(gExecutableStore == MAP_FAILED, "Creating code cache, mmap failed with error " "'%s'", strerror(errno)); close(fd); |