Skip to content
Snippets Groups Projects
Commit 41e0180f authored by Christian König's avatar Christian König
Browse files

drm/amdgpu: fix use after free during BO move


The memory backing old_mem is already freed at that point, move the
check a bit more up.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Fixes: bfa3357e ("drm/ttm: allocate resource object instead of embedding it v2")
Bug: drm/amd#1699


Acked-by: default avatarNirmoy Das <nirmoy.das@amd.com>
parent 2ab20888
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment