diff options
author | Chris Michael <cp.michael@samsung.com> | 2017-12-12 11:28:36 -0500 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2017-12-12 11:28:36 -0500 |
commit | e4d5528e344bd18a635b2ef1876917d962fc724b (patch) | |
tree | b02e118514c9da26c35adc78767cc7f8dc3a5111 | |
parent | 7bb099a416fe1cb4438940b9b2c8502abcfb998c (diff) | |
download | efl-e4d5528e344bd18a635b2ef1876917d962fc724b.tar.gz |
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.c | 1 |
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 ob = data; bo = ecore_drm2_fb_bo_get(fb); + if ((!ob->surface) || (!bo)) return; gbm_surface_release_buffer(ob->surface, bo); } |