mirror_ubuntu-kernels/drivers/gpu/drm/amd
Christian König c92db8d64f 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: Christian König <christian.koenig@amd.com>
Fixes: bfa3357ef9 ("drm/ttm: allocate resource object instead of embedding it v2")
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1699
Acked-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
2021-09-14 16:17:39 -04:00
..
acp
amdgpu drm/amdgpu: fix use after free during BO move 2021-09-14 16:17:39 -04:00
amdkfd drm/amdkfd: drop process ref count when xnack disable 2021-09-01 16:55:09 -04:00
display drm fixes for 5.15-rc1 2021-09-10 11:22:23 -07:00
include drm/amd/pm: drop the unnecessary intermediate percent-based transition 2021-08-16 15:35:56 -04:00
pm drm/amd/pm: fix the issue of uploading powerplay table 2021-09-14 16:15:21 -04:00