summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Devin Moore <devinmoore@google.com> 2025-03-04 21:42:54 +0000
committer Devin Moore <devinmoore@google.com> 2025-03-04 13:44:24 -0800
commit7ba43785c9a7d1c3ad2afa458967f090276b21df (patch)
tree2f6560b396f6dccaa0c19de6002ab71981bb78f5
parent6dfc509ab2e4b41af14d2cb041ada2a2d2532de5 (diff)
Add comment explaining BpBinder::linkToDeath invalid operation
Test: none Bug: none Change-Id: I5e55018314079b895084d2ae06a197b9d9e54480
-rw-r--r--libs/binder/Binder.cpp3
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;
}