]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: fix ttm_bo_cleanup_refs_or_queue once more
authorChristian König <christian.koenig@amd.com>
Mon, 4 Sep 2017 18:58:45 +0000 (20:58 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:23:41 +0000 (14:23 -0400)
commit495691d7884667356c9961676ca038a85bb376c1
tree43adcb89b887991c2837558a469bd6a4c0d0726f
parent62a6772bb552703f068ba7811f55769cdbd49915
drm/ttm: fix ttm_bo_cleanup_refs_or_queue once more

With shared reservation objects __ttm_bo_reserve() can easily fail even on
destroyed BOs. This prevents correct handling when we need to individualize
the reservation object.

Fix this by individualizing the object before even trying to reserve it.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c