Skip to content

vkr: fix segfault in object cleanup path

Chia-I Wu requested to merge olv/virglrenderer:vkr-crash into master

RELEASE_TRACKED_OBJECTS(&((struct vkr_descriptor_pool *)obj)->descriptor_sets) was expanded to

struct vkr_object *obj, *tmp;
LIST_FOR_EACH_ENTRY_SAFE(obj, tmp, &((struct vkr_descriptor_pool *)obj)->descriptor_sets), track_head)
   util_hash_table_remove_u64(ctx->object_table, _obj->id);

where obj was garbage.

/cc @zzyiwei @ryanneph

Merge request reports

Loading