summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJay Cornwall <jay@jcornwall.me>2016-08-03 13:39:42 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-08-10 12:11:48 -0400
commitc2a4c5b75a717db8bbe1c2fad6473063a7d2f930 (patch)
tree2ca3b988ae6ede8b8abb0a190ea54c2fec79e1a2 /drivers
parent64827adc9e14c8d17cf5f3d5a9ee47a42e95dd8c (diff)
downloadlinux-c2a4c5b75a717db8bbe1c2fad6473063a7d2f930.tar.bz2
drm/amdgpu: Fix memory trashing if UVD ring test fails
fence_put was called on an uninitialized variable. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Jay Cornwall <jay@jcornwall.me> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
index b11f4e8868d7..4aa993d19018 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
@@ -1187,7 +1187,8 @@ int amdgpu_uvd_ring_test_ib(struct amdgpu_ring *ring, long timeout)
r = 0;
}
-error:
fence_put(fence);
+
+error:
return r;
}