summaryrefslogtreecommitdiff
path: root/libs/binder/ProcessState.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2019-09-17 15:22:47 -0700
committer android-build-merger <android-build-merger@google.com> 2019-09-17 15:22:47 -0700
commit07bc79d33323c9de2053a6c4f06ffbba9af2d668 (patch)
tree182a99d65e2ae36386e8414a57a9ba844d47d677 /libs/binder/ProcessState.cpp
parent3f25a4c433bb3c400ea466f6d54ad448121cb537 (diff)
parent240e58191c19434e98ef8aa0d9ce0f53f60d4c84 (diff)
Merge "libbinder: on host" am: a8cb8d7624
am: 240e58191c Change-Id: Iee9da5f39a3dfca42f65a925c6741bd4cf456ccb
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;
}