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

Commit 83f8bba2 authored by Jinguang Dong's avatar Jinguang Dong Committed by android-build-merger
Browse files

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

am: 2792ff45

Change-Id: Ia8c1ac3f9eff3680ed64235cb01043d0b7c434b9
parents f1188685 2792ff45
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -656,6 +656,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();