msm8960: hwc: fix null point

Change-Id: I230a068381ae978a315222c91a3f647de2391ec9
This commit is contained in:
Emmett Tsai 2018-12-29 01:48:16 +08:00 committed by followmsi
parent 8def73c018
commit 12759fc641
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ static bool validDisplay(int disp) {
//Helper
static void reset(hwc_context_t *ctx, int numDisplays,
hwc_display_contents_1_t** displays) {
for(int i = 0; i < MAX_DISPLAYS; i++) {
for(int i = 0; i < numDisplays; i++) {
hwc_display_contents_1_t *list = displays[i];
// XXX:SurfaceFlinger no longer guarantees that this
// value is reset on every prepare. However, for the layer