GitLab will be down for maintenance this Sunday 13th June, from approx 7-11am UTC. This is for a PostgreSQL migration. See the tracker issue for more informations.

Commit 21e72fb2 authored by Michel Dänzer's avatar Michel Dänzer
Browse files

Properly handle drmModeAddFB failure in drmmode_crtc_scanout_allocate

We were printing an error message, but not propagating the failure. That
would probably lead to trouble down the road.
Reviewed-by: default avatarAlex Deucher <>
parent 8da1d0c8
...@@ -503,6 +503,9 @@ drmmode_crtc_scanout_allocate(xf86CrtcPtr crtc, ...@@ -503,6 +503,9 @@ drmmode_crtc_scanout_allocate(xf86CrtcPtr crtc,
bo_handle.u32, &scanout->fb_id); bo_handle.u32, &scanout->fb_id);
if (ret) { if (ret) {
ErrorF("failed to add rotate fb\n"); ErrorF("failed to add rotate fb\n");
scanout->bo = NULL;
return NULL;
} }
scanout->width = width; scanout->width = width;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment