summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_fb.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-04-28 10:38:30 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-05-05 12:53:22 -0500
commite7a494ba879483b364f346d8f138fb568a5628e2 (patch)
treea6f5bee9e7db941e6dffbadb3cc423b063b3adfa /src/lib/ecore_drm2/ecore_drm2_fb.c
parent9da0f52642706057dc71894a490ede658580d48b (diff)
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.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c
index 2018e121c5..ad29607d07 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)
351 DRM_MODE_ATOMIC_NONBLOCK | DRM_MODE_PAGE_FLIP_EVENT | 351 DRM_MODE_ATOMIC_NONBLOCK | DRM_MODE_PAGE_FLIP_EVENT |
352 DRM_MODE_ATOMIC_ALLOW_MODESET; 352 DRM_MODE_ATOMIC_ALLOW_MODESET;
353 353
354 if (!output->prep.atomic_req) return -1; 354 EINA_SAFETY_ON_NULL_RETURN_VAL(output->prep.atomic_req, -1);
355 355
356 res = 356 res =
357 sym_drmModeAtomicCommit(output->fd, 357 sym_drmModeAtomicCommit(output->fd,