summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-04-03 11:10:11 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-12-03 11:17:28 -0500
commitf7872ad17b7672b33479c7990201c06e8346e5b2 (patch)
treed8cf8da6ad3ab8da5e6d9027fe26ab99030ca49d
parentccd0576df8c1bb2e96039fb749b98f38aa65c72c (diff)
ecore-drm2: Check for valid fb before using trying to use itdevs/devilhorns/output
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_fb.c3
1 files changed, 3 insertions, 0 deletions
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_
244{ 244{
245 Ecore_Drm2_Fb *fb = s->fb; 245 Ecore_Drm2_Fb *fb = s->fb;
246 246
247 if (!fb) goto out;
248
247 if (fb->status_handler) 249 if (fb->status_handler)
248 fb->status_handler(fb, ECORE_DRM2_FB_STATUS_RELEASE, fb->status_data); 250 fb->status_handler(fb, ECORE_DRM2_FB_STATUS_RELEASE, fb->status_data);
249 251
250 _ecore_drm2_fb_deref(fb); 252 _ecore_drm2_fb_deref(fb);
251 s->fb = NULL; 253 s->fb = NULL;
254out:
252 if (_ecore_drm2_use_atomic) 255 if (_ecore_drm2_use_atomic)
253 { 256 {
254 if (s->atomic_req) 257 if (s->atomic_req)