diff options
author | Christian König <[email protected]> | 2021-09-07 09:37:52 +0200 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2021-09-07 13:30:49 -0400 |
commit | 101ba90ff0339f02591ea141ea5cf09f4377d31a (patch) | |
tree | 58b93d1bc08351d4cbddfd136738f1fb4f431e3b /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | ac1509d19e2e44d1ea13753cfc265c4693f12ef5 (diff) |
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 <[email protected]>
Fixes: bfa3357ef9ab ("drm/ttm: allocate resource object instead of embedding it v2")
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1699
Acked-by: Nirmoy Das <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions