am c214fe59: Fix incorrect error check for mmap
* commit 'c214fe59fc48740ed003a3cde4e5a60517c5d5ce':
Fix incorrect error check for mmap
diff --git a/cpu_ref/rsCpuIntrinsicColorMatrix.cpp b/cpu_ref/rsCpuIntrinsicColorMatrix.cpp
index d9c0ded..64ce43f 100644
--- a/cpu_ref/rsCpuIntrinsicColorMatrix.cpp
+++ b/cpu_ref/rsCpuIntrinsicColorMatrix.cpp
@@ -486,7 +486,8 @@
//StopWatch build_time("rs cm: build time");
mBuf = (uint8_t *)mmap(0, mBufSize, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANON, -1, 0);
- if (!mBuf) {
+ if (mBuf == MAP_FAILED) {
+ mBuf = NULL;
return false;
}