]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix TTM move entity init order
authorChristian König <christian.koenig@amd.com>
Thu, 12 Jul 2018 12:31:25 +0000 (14:31 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jul 2018 19:45:49 +0000 (14:45 -0500)
commit66487c4eeef650b24cf3e27d791337254324f35a
tree25fcbd753f5cb622fdd7e9e35a46fb4578671d9c
parent84817f3cb49e4c58f9d0de0fd3164ee407809561
drm/amdgpu: fix TTM move entity init order

We are initializing the entity before the scheduler is actually
initialized.

This can lead to all kind of problem, but especially NULL pointer deref
because of Nayan's scheduler work.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c