Mesa (master): anv: Clean up anv_device_memory::base on failure

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Apr 10 02:28:08 UTC 2021


Module: Mesa
Branch: master
Commit: e20c653781cd9976d6ddb7f62e76fb66d22601b3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e20c653781cd9976d6ddb7f62e76fb66d22601b3

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Thu Apr  8 16:10:26 2021 -0500

anv: Clean up anv_device_memory::base on failure

Fixes: 682c81bdfb7 "vulkan,anv: Add a base object struct type"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10123>

---

 src/intel/vulkan/anv_device.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index d1f1750a8e6..07dbdf80fb5 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -3935,6 +3935,7 @@ VkResult anv_AllocateMemory(
    return VK_SUCCESS;
 
  fail:
+   vk_object_base_finish(&mem->base);
    vk_free2(&device->vk.alloc, pAllocator, mem);
 
    return result;



More information about the mesa-commit mailing list