derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e7a494ba879483b364f346d8f138fb568a5628e2

commit e7a494ba879483b364f346d8f138fb568a5628e2
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Fri Apr 28 10:38:30 2017 -0500

    ecore_drm2: treat atomic flip without a req as an error
    
    We should use the safety macro here instead of silently continuing so we
    can get something in the log if this happens.
---
 src/lib/ecore_drm2/ecore_drm2_fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c 
b/src/lib/ecore_drm2/ecore_drm2_fb.c
index 2018e12..ad29607 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -351,7 +351,7 @@ _fb_atomic_flip(Ecore_Drm2_Output *output)
      DRM_MODE_ATOMIC_NONBLOCK | DRM_MODE_PAGE_FLIP_EVENT |
      DRM_MODE_ATOMIC_ALLOW_MODESET;
 
-   if (!output->prep.atomic_req) return -1;
+   EINA_SAFETY_ON_NULL_RETURN_VAL(output->prep.atomic_req, -1);
 
    res =
      sym_drmModeAtomicCommit(output->fd,

-- 


Reply via email to