mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 09:10:16 +01:00
anv: add missing unlock in error path.
Not going to matter, but be consistent. Found by coverity Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Fixes:caf41c78c(anv/allocator: Support softpin in the BO cache) (cherry picked from commit29a7631986)
This commit is contained in:
parent
a0782c61b2
commit
9282afbca4
1 changed files with 1 additions and 0 deletions
|
|
@ -1358,6 +1358,7 @@ anv_bo_cache_import(struct anv_device *device,
|
|||
if ((new_flags & EXEC_OBJECT_PINNED) &&
|
||||
(bo->bo.flags & EXEC_OBJECT_SUPPORTS_48B_ADDRESS) !=
|
||||
(bo_flags & EXEC_OBJECT_SUPPORTS_48B_ADDRESS)) {
|
||||
pthread_mutex_unlock(&cache->mutex);
|
||||
return vk_errorf(device->instance, NULL,
|
||||
VK_ERROR_INVALID_EXTERNAL_HANDLE,
|
||||
"The same BO was imported on two different heaps");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue