Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc45cabc authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "libbinder: only set sm stability if non-null" am: 7ac860e5 am: 99c72813

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1536623

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I703d82abf612d2a0c7f0d440da6a3e54eadab302
parents 58795ac6 99c72813
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -124,13 +124,13 @@ sp<IBinder> ProcessState::getContextObject(const sp<IBinder>& /*caller*/)
{
    sp<IBinder> context = getStrongProxyForHandle(0);

    if (context == nullptr) {
       ALOGW("Not able to get context object on %s.", mDriverName.c_str());
    }

    if (context) {
        // The root object is special since we get it directly from the driver, it is never
        // written by Parcell::writeStrongBinder.
        internal::Stability::markCompilationUnit(context.get());
    } else {
        ALOGW("Not able to get context object on %s.", mDriverName.c_str());
    }

    return context;
}