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

Commit c82b9c33 authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Don't segfault on fail to create drm factory

bug:35329920
Change-Id: Id65254447d76222b78f977f6598751c5c51c87f3
parent 36b31c87
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;
}