diff options
author | Nirmoy Das <nirmoy.das@amd.com> | 2021-06-29 14:44:13 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2021-06-29 16:19:18 +0300 |
commit | ba2472eaf7255dfba27cea0b674ffcc0ee348293 (patch) | |
tree | bbabde7cdd6517b02dadc012d87feee875e42d26 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
parent | eed75ce7c8260e0d5612ced4a88180ab991e207c (diff) | |
download | linux-ba2472eaf7255dfba27cea0b674ffcc0ee348293.tar.xz |
drm/amdgpu: return early for non-TTM_PL_TT type BOs
Return early for non-TTM_PL_TT BOs so that we don't pass
wrong pointer to amdgpu_gtt_mgr_has_gart_addr() which assumes
ttm_resource argument to be TTM_PL_TT type BO's.
v3: remove extra braces.
v2: merge if-conditions.
Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210629114413.3371-1-nirmoy.das@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions