drm/ttm: once more fix ttm_bo_bulk_move_lru_tail
authorChristian König <christian.koenig@amd.com>
Wed, 12 Sep 2018 19:19:57 +0000 (21:19 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Sep 2018 20:14:11 +0000 (15:14 -0500)
commit03651735fbded39f608163718f816ab9cf14fba7
treeba83f70ceb6cf511f785c64250f2b69498760816
parentc37e2d29f0fbc933508637d7129a8f079b06ab40
drm/ttm: once more fix ttm_bo_bulk_move_lru_tail

While cutting the lists we sometimes accidentally added a list_head from
the stack to the LRUs, effectively corrupting the list.

Remove the list cutting and use explicit list manipulation instead.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-and-Tested: Huang Rui <ray.huang@amd.com>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c