summaryrefslogtreecommitdiff
path: root/cpu_ref/rsCpuIntrinsicColorMatrix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpu_ref/rsCpuIntrinsicColorMatrix.cpp')
-rw-r--r--cpu_ref/rsCpuIntrinsicColorMatrix.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu_ref/rsCpuIntrinsicColorMatrix.cpp b/cpu_ref/rsCpuIntrinsicColorMatrix.cpp
index d9c0ded6..64ce43f4 100644
--- a/cpu_ref/rsCpuIntrinsicColorMatrix.cpp
+++ b/cpu_ref/rsCpuIntrinsicColorMatrix.cpp
@@ -486,7 +486,8 @@ bool RsdCpuScriptIntrinsicColorMatrix::build(Key_t key) {
//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;
}