summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_plane.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_plane.c b/src/lib/ecore_drm2/ecore_drm2_plane.c
index 155c932bf5..9ebc1d96ff 100644
--- a/src/lib/ecore_drm2/ecore_drm2_plane.c
+++ b/src/lib/ecore_drm2/ecore_drm2_plane.c
@@ -109,6 +109,14 @@ out:
109 DBG("FB %d assigned to Plane %d", fb->id, pstate->obj_id); 109 DBG("FB %d assigned to Plane %d", fb->id, pstate->obj_id);
110 output->planes = eina_list_append(output->planes, plane); 110 output->planes = eina_list_append(output->planes, plane);
111 111
112 if (!_fb_atomic_flip_test(output))
113 {
114 output->planes = eina_list_remove(output->planes, plane);
115 plane->state->in_use = EINA_FALSE;
116 free(plane);
117
118 return NULL;
119 }
112 return plane; 120 return plane;
113} 121}
114 122