mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
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:
parent
4a178cf858
commit
cb5415396d
1 changed files with 1 additions and 0 deletions
|
|
@ -124,6 +124,7 @@ panvk_pool_reset(struct panvk_pool *pool)
|
|||
}
|
||||
|
||||
util_dynarray_clear(&pool->bos);
|
||||
pool->transient_bo = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue