drm/amdgpu: fix leaking fence in the pageflip code
authorChristian König <christian.koenig@amd.com>
Thu, 31 Mar 2016 11:05:51 +0000 (13:05 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Apr 2016 14:08:38 +0000 (10:08 -0400)
commitab7e9c137a85cf942c720498501d29719e61160c
tree4638b496b3a29c71463e72f84e685b809e20f20a
parent1f8628c76454561de3c3acd513fa9b17abf864cf
drm/amdgpu: fix leaking fence in the pageflip code

This fixes a memory leak when we can't register the callback on a fence.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c