OSDN Git Service

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)
commitb7d85e1db32ea85b09f58f416da48f44285ff41f
tree25fcbd753f5cb622fdd7e9e35a46fb4578671d9c
parent44a99b65fc27474b66f7173b971bfbd67ca6ba74
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