tdm_hwc: add null check 83/236183/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 15 Jun 2020 10:30:21 +0000 (19:30 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 15 Jun 2020 10:30:36 +0000 (19:30 +0900)
Change-Id: I7f1bd8a7412f8ca980232cdaff072f9a76c78103
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/tdm_hwc.c

index 3131ebd..ea96cc8 100644 (file)
@@ -212,6 +212,7 @@ _tdm_hwc_cb_wait_vblank(tdm_vblank *vblank, tdm_error error, unsigned int sequen
                return;
 
        TDM_RETURN_IF_FAIL(hwc_commit_handler != NULL);
+       TDM_RETURN_IF_FAIL(hwc_commit_handler->private_hwc != NULL);
 
        private_output = hwc_commit_handler->private_hwc->private_output;
        TDM_RETURN_IF_FAIL(private_output != NULL);