aboutsummaryrefslogtreecommitdiffstats
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-04-03 11:10:11 -0400
commit4d958f2e0385be3e204020acd2605dc57201b4b4 (patch)
tree93b4e0535bb192977fc844a3034cd8c51da08818
parentecore-drm2: Re-Enable support for more than one output (diff)
downloadefl-devs/devilhorns/output.tar.gz
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 017f981693..0fb93c85dc 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -242,11 +242,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)