mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
anv: Free vmas in case device creation fails in pthread_mutex_init(&device->mutex
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17961>
This commit is contained in:
parent
e5923bbdc0
commit
c5f03288f0
1 changed files with 1 additions and 1 deletions
|
|
@ -3285,7 +3285,7 @@ VkResult anv_CreateDevice(
|
|||
|
||||
if (pthread_mutex_init(&device->mutex, NULL) != 0) {
|
||||
result = vk_error(device, VK_ERROR_INITIALIZATION_FAILED);
|
||||
goto fail_queues;
|
||||
goto fail_vmas;
|
||||
}
|
||||
|
||||
pthread_condattr_t condattr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue