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

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 <alexander.deucher@amd.com>
parent 8da1d0c8
......@@ -503,6 +503,9 @@ drmmode_crtc_scanout_allocate(xf86CrtcPtr crtc,
bo_handle.u32, &scanout->fb_id);
if (ret) {
ErrorF("failed to add rotate fb\n");
amdgpu_bo_unref(&scanout->bo);
scanout->bo = NULL;
return NULL;
}
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