radv/amdgpu: free the VA range in case the BO allocation failed

Found by inspection.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
(cherry picked from commit 02628a5eb7)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40752>
This commit is contained in:
Samuel Pitoiset 2026-03-17 14:23:42 +01:00 committed by Eric Engestrom
parent eccd9df749
commit 111c2dacaa
2 changed files with 2 additions and 1 deletions

View file

@ -6154,7 +6154,7 @@
"description": "radv/amdgpu: free the VA range in case the BO allocation failed",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -759,6 +759,7 @@ error_va_map:
ac_drm_bo_free(ws->dev, buf_handle);
error_bo_alloc:
ac_drm_va_range_free(va_handle);
free(ranges);
error_va_alloc: