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

Commit 2792ff45 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "surfaceflinger:Fix potential crash issue when do AIDL FUZZ test"

parents b29c82b6 9f8b9ae2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -646,6 +646,10 @@ status_t SurfaceFlinger::getDisplayStats(const sp<IBinder>& /* display */,
}

int SurfaceFlinger::getActiveConfig(const sp<IBinder>& display) {
    if (display == NULL) {
        ALOGE("%s : display is NULL", __func__);
        return BAD_VALUE;
    }
    sp<DisplayDevice> device(getDisplayDevice(display));
    if (device != NULL) {
        return device->getActiveConfig();