]> git.itanic.dy.fi Git - linux-stable/commit
drm/amdgpu: return early for non-TTM_PL_TT type BOs
authorNirmoy Das <nirmoy.das@amd.com>
Tue, 29 Jun 2021 11:44:13 +0000 (13:44 +0200)
committerChristian König <christian.koenig@amd.com>
Tue, 29 Jun 2021 13:19:18 +0000 (15:19 +0200)
commitba2472eaf7255dfba27cea0b674ffcc0ee348293
treebbabde7cdd6517b02dadc012d87feee875e42d26
parenteed75ce7c8260e0d5612ced4a88180ab991e207c
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
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c