kms: fix front buffer VRAM leaked when amdgpu_bo_map() fails

Signed-off-by: Joseph Crowell <joseph.w.crowell@gmail.com>
This commit is contained in:
Joseph Crowell
2026-01-23 19:28:40 +10:00
parent ba02a2efdd
commit 2bf92d66ed

View File

@@ -2389,6 +2389,7 @@ static Bool amdgpu_setup_kernel_mem(ScreenPtr pScreen)
if (!info->use_glamor &&
amdgpu_bo_map(pScrn, info->front_buffer) != 0) {
ErrorF("Failed to map front buffer memory\n");
amdgpu_bo_unref(&info->front_buffer);
return FALSE;
}