panvk: Reset panvk_pool->transient_bo in panvk_pool_reset()

Fixes a use-after-free issue.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12762>
This commit is contained in:
Boris Brezillon 2021-09-06 16:14:37 +02:00
parent 4a178cf858
commit cb5415396d

View file

@ -124,6 +124,7 @@ panvk_pool_reset(struct panvk_pool *pool)
}
util_dynarray_clear(&pool->bos);
pool->transient_bo = NULL;
}
void