diff options
| author | Christian König <[email protected]> | 2021-09-07 09:37:52 +0200 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-09-14 16:17:39 -0400 |
| commit | c92db8d64f9e0313e7ecdc9500db93a5040c9370 (patch) | |
| tree | 250689ad5c17c6600c9def8a0afaf87132348db7 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | 5598d7c21a0bcab900f281dca4efbb1f80add0fe (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]>
Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions