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

Commit bfaf4810 authored by Jeff Tinker's avatar Jeff Tinker Committed by gitbuildkicker
Browse files

Don't segfault on fail to create drm factory

bug:35329920
Change-Id: Id65254447d76222b78f977f6598751c5c51c87f3
(cherry picked from commit c82b9c33)
parent 8207d20a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -201,9 +201,12 @@ sp<IDrmFactory> DrmHal::makeDrmFactory() {
    sp<IDrmFactory> factory = IDrmFactory::getService("drm");
    if (factory == NULL) {
        ALOGE("Failed to make drm factory");
        return NULL;
    }

    ALOGD("makeDrmFactory: service is %s",
            factory->isRemote() ? "Remote" : "Not Remote");

    return factory;
}