summaryrefslogtreecommitdiff
path: root/libs/binder/ProcessState.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2019-09-17 15:37:04 -0700
committer android-build-merger <android-build-merger@google.com> 2019-09-17 15:37:04 -0700
commit8ea008771ef5994ef735645d2afab0465da9aeec (patch)
tree4557b2d0bc82ed5c775634fad8437d0c3477d2b7 /libs/binder/ProcessState.cpp
parent800f31efbdc5e38d6f54a401e068902f609b8ef1 (diff)
parent68ff4b6e913e4c7dcc2debb969da6be1297b82b7 (diff)
Merge "libbinder: on host" am: a8cb8d7624 am: 240e58191c am: 07bc79d333
am: 68ff4b6e91 Change-Id: I2ab4aea327a0ecd8840699fe68c4fd2df9ff2a4c
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;
}