summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-12-12 11:28:36 -0500
committerChris Michael <cp.michael@samsung.com>2017-12-12 11:28:36 -0500
commite4d5528e344bd18a635b2ef1876917d962fc724b (patch)
treeb02e118514c9da26c35adc78767cc7f8dc3a5111
parent7bb099a416fe1cb4438940b9b2c8502abcfb998c (diff)
evas-gl-drm: Don't pass invalid surface or bo to gbm function
This small patch just checks that we have a valid surface and bo that we can pass to gbm_surface_release_buffer. If they are not valid, this causes a hard crash. NB: This does not actually Fix the ticket issue.... ref T6483 Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/modules/evas/engines/gl_drm/evas_outbuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c b/src/modules/evas/engines/gl_drm/evas_outbuf.c
index 649b9b615e..aff5de87bf 100644
--- a/src/modules/evas/engines/gl_drm/evas_outbuf.c
+++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c
@@ -54,6 +54,7 @@ _evas_outbuf_release_fb(Ecore_Drm2_Fb *fb, Ecore_Drm2_Fb_Status status, void *da
54 54
55 ob = data; 55 ob = data;
56 bo = ecore_drm2_fb_bo_get(fb); 56 bo = ecore_drm2_fb_bo_get(fb);
57 if ((!ob->surface) || (!bo)) return;
57 gbm_surface_release_buffer(ob->surface, bo); 58 gbm_surface_release_buffer(ob->surface, bo);
58} 59}
59 60