summaryrefslogtreecommitdiff
path: root/libs/binder/Parcel.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2021-04-12 21:09:03 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-04-12 21:09:03 +0000
commitd5cc17b3b45f32f1a74d963b2c59e39a12c46675 (patch)
treeb9331e64756e73b847d0996f1c4ab8c28c767e39 /libs/binder/Parcel.cpp
parent369abe010a738a5c5e841cfeac82bd0fca7bfb1c (diff)
parent1a3a8effca802995ece193b7d40cd80abba55798 (diff)
Merge "libbinder use stronger refbase semantics"
Diffstat (limited to 'libs/binder/Parcel.cpp')
-rw-r--r--libs/binder/Parcel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp
index b1dddd14ec..98ca829031 100644
--- a/libs/binder/Parcel.cpp
+++ b/libs/binder/Parcel.cpp
@@ -293,7 +293,8 @@ status_t Parcel::unflattenBinder(sp<IBinder>* out) const
if (flat) {
switch (flat->hdr.type) {
case BINDER_TYPE_BINDER: {
- sp<IBinder> binder = reinterpret_cast<IBinder*>(flat->cookie);
+ sp<IBinder> binder =
+ sp<IBinder>::fromExisting(reinterpret_cast<IBinder*>(flat->cookie));
return finishUnflattenBinder(binder, out);
}
case BINDER_TYPE_HANDLE: {