diff options
| author | Christian König <[email protected]> | 2021-09-07 07:37:52 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-09-07 17:30:49 +0000 |
| commit | 101ba90ff0339f02591ea141ea5cf09f4377d31a (patch) | |
| tree | 58b93d1bc08351d4cbddfd136738f1fb4f431e3b /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm/amdgpu: Create common PSP TA load function (diff) | |
| download | kernel-101ba90ff0339f02591ea141ea5cf09f4377d31a.tar.gz kernel-101ba90ff0339f02591ea141ea5cf09f4377d31a.zip | |
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
