Commit c2a4c5b7 authored by Jay Cornwall's avatar Jay Cornwall Committed by Alex Deucher

drm/amdgpu: Fix memory trashing if UVD ring test fails

fence_put was called on an uninitialized variable.
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarJay Cornwall <jay@jcornwall.me>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 64827adc
......@@ -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;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment