From f7872ad17b7672b33479c7990201c06e8346e5b2 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 3 Apr 2019 11:10:11 -0400 Subject: [PATCH] ecore-drm2: Check for valid fb before using trying to use it --- src/lib/ecore_drm2/ecore_drm2_fb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c index e91cf67ec5..853a6d23d8 100644 --- a/src/lib/ecore_drm2/ecore_drm2_fb.c +++ b/src/lib/ecore_drm2/ecore_drm2_fb.c @@ -244,11 +244,14 @@ _ecore_drm2_fb_buffer_release(Ecore_Drm2_Output *output EINA_UNUSED, Ecore_Drm2_ { Ecore_Drm2_Fb *fb = s->fb; + if (!fb) goto out; + if (fb->status_handler) fb->status_handler(fb, ECORE_DRM2_FB_STATUS_RELEASE, fb->status_data); _ecore_drm2_fb_deref(fb); s->fb = NULL; +out: if (_ecore_drm2_use_atomic) { if (s->atomic_req)