mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user