Skip to content

Commit 7ba4378

Browse files
Add comment explaining BpBinder::linkToDeath invalid operation
Test: none Bug: none Change-Id: I5e55018314079b895084d2ae06a197b9d9e54480
1 parent 6dfc509 commit 7ba4378

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/binder/Binder.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@ status_t BBinder::linkToDeath(
445445
const sp<DeathRecipient>& /*recipient*/, void* /*cookie*/,
446446
uint32_t /*flags*/)
447447
{
448+
// BBinder::linkToDeath is invalid because this process owns this binder.
449+
// The DeathRecipient is called on BpBinders when the process owning the
450+
// binder node dies.
448451
return INVALID_OPERATION;
449452
}
450453

0 commit comments

Comments
 (0)