mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
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:
parent
eccd9df749
commit
111c2dacaa
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue