mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
tu/drm: Add missing error path cleanup
Fixes:bea6290ca0("turnip: device global bo list") Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23533> (cherry picked from commit84524cfdfa)
This commit is contained in:
parent
3c5e28f695
commit
fe71df9883
2 changed files with 3 additions and 1 deletions
|
|
@ -1525,7 +1525,7 @@
|
|||
"description": "tu/drm: Add missing error path cleanup",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "bea6290ca090a7be7e7d51c9316cf68337ac4e1f"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -353,6 +353,8 @@ tu_bo_init(struct tu_device *dev,
|
|||
vk_realloc(&dev->vk.alloc, dev->bo_list, new_len * sizeof(*dev->bo_list),
|
||||
8, VK_SYSTEM_ALLOCATION_SCOPE_DEVICE);
|
||||
if (!new_ptr) {
|
||||
dev->bo_count--;
|
||||
mtx_unlock(&dev->bo_mutex);
|
||||
tu_gem_close(dev, gem_handle);
|
||||
return VK_ERROR_OUT_OF_HOST_MEMORY;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue