Skip to content
Commit c92db8d6 authored by Christian König's avatar Christian König Committed by Alex Deucher
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: https://gitlab.freedesktop.org/drm/amd/-/issues/1699


Acked-by: default avatarNirmoy Das <nirmoy.das@amd.com>
Reviewed-by: default avatarMichel Dänzer <mdaenzer@redhat.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent 5598d7c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment