summaryrefslogtreecommitdiff
path: root/libs/binder/ProcessState.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2019-04-01 18:52:30 -0700
committer Steven Moreland <smoreland@google.com> 2019-09-09 22:58:26 +0000
commit28723ae444e4ef1678160314bd03cbd8212d7414 (patch)
tree153768ec1e3b80bcb7f78b373562e2287ffae252 /libs/binder/ProcessState.cpp
parent8f82e1240fde062a2b30b018015b06c7a757d4bd (diff)
libbinder: on host
The usecase is unit testing things which implement binder interfaces. Bug: 124524556 Test: TH runs all relevant unit tests Change-Id: I8caba1290da6d0354a7736a26d1dad7b6ab852e6
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;
}