anv: fix incorrect realloc failure handling
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 6 Aug 2020 08:13:06 +0000 (11:13 +0300)
committerMarge Bot <eric+marge@anholt.net>
Thu, 6 Aug 2020 23:07:56 +0000 (23:07 +0000)
commitb43bcb05a172e44bc2bd4dda5eac9397a54fa2f0
treee25dc646ef5fc3bde30dd5c9b0fa99c0ce3c832d
parent21b47cbd9968035edff9069b0939151bc3ad8182
anv: fix incorrect realloc failure handling

We don't want to leak in case of failure.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reported-by: Ivan Briano <ivan.briano@intel.com>
Fixes: 246261f0addf ("anv: prepare the driver for delayed submissions")
Fixes: 34f32a6d6648 ("anv: implement VK_KHR_timeline_semaphore")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6200>
src/intel/vulkan/anv_queue.c