drm/ttm: fix ttm_bo_bulk_move_helper
authorChristian König <christian.koenig@amd.com>
Fri, 31 Aug 2018 13:06:35 +0000 (15:06 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Sun, 2 Sep 2018 15:16:32 +0000 (10:16 -0500)
commit972a21f94631642d6714bb2a1983b7b15a77526d
tree3be2b27fd1ee0625cc890682f1f2020f48ddeadd
parent88b35d83a79c19e0d817f500f9306fe3eef43057
drm/ttm: fix ttm_bo_bulk_move_helper

Staring at the function for six hours, just to essentially move one line
of code. The problem was that the first list_cut_position call could result
in list2 pointing to la-la-land.

Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c