summaryrefslogtreecommitdiffstats
path: root/hwc
diff options
context:
space:
mode:
Diffstat (limited to 'hwc')
-rw-r--r--hwc/hwc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hwc/hwc.c b/hwc/hwc.c
index e155d28..808a2af 100644
--- a/hwc/hwc.c
+++ b/hwc/hwc.c
@@ -1388,6 +1388,9 @@ static void check_sync_fds(size_t numDisplays, hwc_display_contents_1_t** displa
unsigned int i, j;
for (i = 0; i < numDisplays; i++) {
hwc_display_contents_1_t* list = displays[i];
+ if (!list)
+ continue;
+
if (list->retireFenceFd >= 0) {
ALOGW("retireFenceFd[%u] was %d", i, list->retireFenceFd);
list->retireFenceFd = -1;