diff options
author | 2025-03-18 10:55:48 -0700 | |
---|---|---|
committer | 2025-03-18 10:55:48 -0700 | |
commit | 93806e1a538e35bbf145cc19d87b183e3e1c6f2e (patch) | |
tree | 612076255ad9cb0a0f6ffeb93be256ac1783f57c | |
parent | 6c65610f9f3dab05d2a39b883578845234bdbcda (diff) | |
parent | 4212ea291eae3359f987c1ae85d496b2879dd5db (diff) |
Merge "Add comment explaining BpBinder::linkToDeath invalid operation" into main am: 4212ea291e
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3524953
Change-Id: I29e004d9d7be74244a6486430f61e88231304734
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | libs/binder/Binder.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/binder/Binder.cpp b/libs/binder/Binder.cpp index bc7ae37ff0..9883eb2672 100644 --- a/libs/binder/Binder.cpp +++ b/libs/binder/Binder.cpp @@ -445,6 +445,9 @@ status_t BBinder::linkToDeath( const sp<DeathRecipient>& /*recipient*/, void* /*cookie*/, uint32_t /*flags*/) { + // BBinder::linkToDeath is invalid because this process owns this binder. + // The DeathRecipient is called on BpBinders when the process owning the + // binder node dies. return INVALID_OPERATION; } |