diff options
| author | 2021-03-24 22:58:06 +0000 | |
|---|---|---|
| committer | 2021-03-24 22:58:06 +0000 | |
| commit | 4e83ba78f1548a4ddd27797333d3d484bd798e76 (patch) | |
| tree | 4a2c43f88f8336206d84b26a688306e05816c26d /libs/binder/ProcessState.cpp | |
| parent | 7f284f9697c17d6124bdc1370c27e1b9174453ba (diff) | |
| parent | 5553ac45e0cb23102016858789603d6e12ab456b (diff) | |
Merge "libbinder: support calls over sockets"
Diffstat (limited to 'libs/binder/ProcessState.cpp')
| -rw-r--r-- | libs/binder/ProcessState.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index c38249ef7c..82f6faf7a1 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -205,10 +205,12 @@ ssize_t ProcessState::getKernelReferences(size_t buf_count, uintptr_t* buf) // // Returns -1 in case of failure, otherwise the strong reference count. ssize_t ProcessState::getStrongRefCountForNode(const sp<BpBinder>& binder) { + if (binder->isRpcBinder()) return -1; + binder_node_info_for_ref info; memset(&info, 0, sizeof(binder_node_info_for_ref)); - info.handle = binder->getPrivateAccessorForHandle().handle(); + info.handle = binder->getPrivateAccessorForId().binderHandle(); status_t result = ioctl(mDriverFD, BINDER_GET_NODE_INFO_FOR_REF, &info); |