]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Initialize local lists in ttm_bo_bulk_move_helper
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 28 Aug 2018 16:56:29 +0000 (18:56 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Aug 2018 17:35:59 +0000 (12:35 -0500)
commit5706b2360a5d847c76d4256b4b3fd75dd84d0f00
tree97a69f2de3d9b6c08ee7eb64e6341fcf25cc0946
parent1a89ee22f9b24bdc30e459eb53f264a265ee279e
drm/ttm: Initialize local lists in ttm_bo_bulk_move_helper

The first parameter of list_cut_position() must point to an initialized
list.

Noticed thanks to KASAN pointing out something's fishy here.

Fixes: "drm/ttm: add bulk move function on LRU"
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c