mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 19:48:05 +02:00
amdgpu: Fix use-after-free bug in vamgr_deinit
This patch fixes a use-after-free bug in the vamgr_deinit function. Signed-off-by: Tom St Denis <tom.stdenis@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
988f31ecc2
commit
1a6a8f34a0
1 changed files with 2 additions and 2 deletions
|
|
@ -57,8 +57,8 @@ drm_private void amdgpu_vamgr_init(struct amdgpu_bo_va_mgr *mgr, uint64_t start,
|
|||
|
||||
drm_private void amdgpu_vamgr_deinit(struct amdgpu_bo_va_mgr *mgr)
|
||||
{
|
||||
struct amdgpu_bo_va_hole *hole;
|
||||
LIST_FOR_EACH_ENTRY(hole, &mgr->va_holes, list) {
|
||||
struct amdgpu_bo_va_hole *hole, *tmp;
|
||||
LIST_FOR_EACH_ENTRY_SAFE(hole, tmp, &mgr->va_holes, list) {
|
||||
list_del(&hole->list);
|
||||
free(hole);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue