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)
commit378e2d5b504fe0231c557751e58b80fcf717cc20
tree43adcb89b887991c2837558a469bd6a4c0d0726f
parentaa4ec7ce7ec52c7230cfa73b06d79288b45fe1c9
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