Add comment explaining BpBinder::linkToDeath invalid operation
Test: none
Bug: none
Change-Id: I5e55018314079b895084d2ae06a197b9d9e54480
diff --git a/libs/binder/Binder.cpp b/libs/binder/Binder.cpp
index bc7ae37..9883eb2 100644
--- a/libs/binder/Binder.cpp
+++ b/libs/binder/Binder.cpp
@@ -445,6 +445,9 @@
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;
}