projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e4c153
)
anv/image: Fix cleanup of failed image creation
author
Chad Versace
<chad@kiwitree.net>
Thu, 1 Apr 2021 18:34:23 +0000
(11:34 -0700)
committer
Marge Bot
<eric+marge@anholt.net>
Thu, 8 Apr 2021 14:15:55 +0000
(14:15 +0000)
In anv_image_create(), the failure path neglected to call
vk_object_base_finish().
CC: mesa-stable@lists.freedesktop.org
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1466>
src/intel/vulkan/anv_image.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_image.c
b/src/intel/vulkan/anv_image.c
index
cdcb89f
..
e0945d8
100644
(file)
--- a/
src/intel/vulkan/anv_image.c
+++ b/
src/intel/vulkan/anv_image.c
@@
-1084,9
+1084,8
@@
anv_image_create(VkDevice _device,
return VK_SUCCESS;
fail:
- if (image)
- vk_free2(&device->vk.alloc, alloc, image);
-
+ vk_object_base_finish(&image->base);
+ vk_free2(&device->vk.alloc, alloc, image);
return r;
}