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:
José Roberto de Souza 2022-08-15 08:45:26 -07:00 committed by Marge Bot
parent e5923bbdc0
commit c5f03288f0

View file

@ -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;