aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_descriptor_set.c
diff options
context:
space:
mode:
authorAlex Smith <[email protected]>2017-07-12 11:14:21 +0100
committerBas Nieuwenhuizen <[email protected]>2017-07-13 00:21:20 +0200
commit4d5c0c189d43e7ebf880d7994a09118051d69e97 (patch)
tree1da857134e39c0c18c347fae65fbe8bcd35c6f83 /src/amd/vulkan/radv_descriptor_set.c
parent02735e6cf8821f83e04fb78cd24960a4903ce118 (diff)
radv: Fix possible invalid free of dynamic descriptors
This free was left in after dynamic descriptors were changed to not be allocated separately from the descriptor set, and can cause a crash. Fixes: 39644fa40a3 ("radv: Don't allocate dynamic descriptors separately") Signed-off-by: Alex Smith <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_descriptor_set.c')
-rw-r--r--src/amd/vulkan/radv_descriptor_set.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c
index ec7fd3d8cc8..b482843539d 100644
--- a/src/amd/vulkan/radv_descriptor_set.c
+++ b/src/amd/vulkan/radv_descriptor_set.c
@@ -317,7 +317,6 @@ radv_descriptor_set_create(struct radv_device *device,
}
if (pool->size - offset < layout_size) {
- vk_free2(&device->alloc, NULL, set->dynamic_descriptors);
vk_free2(&device->alloc, NULL, set);
return vk_error(VK_ERROR_OUT_OF_POOL_MEMORY_KHR);
}