drm/amdgpu: Unpin BO if we can't get fences in amdgpu_crtc_page_flip
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 24 Jun 2016 08:30:08 +0000 (17:30 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 19:02:06 +0000 (15:02 -0400)
commitee7fd9575734f434ad541a5985687f195a2ff853
tree230901d687fb9c6e7e10d75882994d7b595f32d9
parent313c45fdb4b3a95004df85e9d15c9e70895f219a
drm/amdgpu: Unpin BO if we can't get fences in amdgpu_crtc_page_flip

If reservation_object_get_fences_rcu failed, we'd previously go directly
to the cleanup label, so we'd leave the BO pinned.

While we're at it, remove two amdgpu_bo_unreserve calls in favour of two
new labels.

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/amd/amdgpu/amdgpu_display.c