diff options
author | 2025-03-18 11:32:12 -0700 | |
---|---|---|
committer | 2025-03-18 11:32:12 -0700 | |
commit | bcbec20c069ccb1f3d2faa34aec1857aec06bc8f (patch) | |
tree | e6286d66de3701d155d8246d492b8c9ad8690078 /libs/binder | |
parent | 4a95d2d934900b45c8bc210fd15a2331d329c5f7 (diff) | |
parent | 93806e1a538e35bbf145cc19d87b183e3e1c6f2e (diff) |
Merge "Add comment explaining BpBinder::linkToDeath invalid operation" into main am: 4212ea291e am: 93806e1a53
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3524953
Change-Id: Idd2ba75fed12813dd397d8d1da2ef67f40f5d977
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs/binder')
-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; } |