summaryrefslogtreecommitdiff
path: root/libs/binder/ProcessState.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2019-09-17 15:29:46 -0700
committer android-build-merger <android-build-merger@google.com> 2019-09-17 15:29:46 -0700
commit68ff4b6e913e4c7dcc2debb969da6be1297b82b7 (patch)
treeb3dc9dc2cca3c9297f95011f9a608bb4b45010cd /libs/binder/ProcessState.cpp
parent7a83605498118e9c0e82310c139ab2f31e44d5e2 (diff)
parent07bc79d33323c9de2053a6c4f06ffbba9af2d668 (diff)
Merge "libbinder: on host" am: a8cb8d7624 am: 240e58191c
am: 07bc79d333 Change-Id: I5e716a318d6ee57bab85b1b8cd6c9beca1064479
Diffstat (limited to 'libs/binder/ProcessState.cpp')
-rw-r--r--libs/binder/ProcessState.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp
index 07db50f7b3..eb828c3ce4 100644
--- a/libs/binder/ProcessState.cpp
+++ b/libs/binder/ProcessState.cpp
@@ -189,7 +189,8 @@ ssize_t ProcessState::getKernelReferences(size_t buf_count, uintptr_t* buf)
}
void ProcessState::setCallRestriction(CallRestriction restriction) {
- LOG_ALWAYS_FATAL_IF(IPCThreadState::selfOrNull(), "Call restrictions must be set before the threadpool is started.");
+ LOG_ALWAYS_FATAL_IF(IPCThreadState::selfOrNull() != nullptr,
+ "Call restrictions must be set before the threadpool is started.");
mCallRestriction = restriction;
}