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>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40461>
This commit is contained in:
Samuel Pitoiset 2026-03-17 14:23:42 +01:00 committed by Marge Bot
parent 0bbc26d2c4
commit 02628a5eb7

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: