提交 c2a4c5b7 编写于 作者: J Jay Cornwall 提交者: Alex Deucher

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

fence_put was called on an uninitialized variable.
Reviewed-by: NChristian König <christian.koenig@amd.com>
Signed-off-by: NJay Cornwall <jay@jcornwall.me>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册