android_kernel_sony_sdm845/drivers/gpu/drm/amd
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Pan Bian 09831a9577 drm/amdkfd: fix improper return value on error
[ Upstream commit 8bf793883da213864efc50c274d2b38ec0ca58b2 ]

In function kfd_wait_on_events(), when the call to copy_from_user()
fails, the value of return variable ret is 0. 0 indicates success, which
is inconsistent with the execution status. This patch fixes the bug by
assigning "-EFAULT" to ret when copy_from_user() returns an unexpected
value.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-10-08 10:26:05 +02:00
..
acp drm/amd: add Kconfig dependency for ACP on DRM_AMDGPU 2016-05-25 09:44:15 -04:00
amdgpu drm/amdgpu: Fix undue fallthroughs in golden registers initialization 2017-08-11 08:49:29 -07:00
amdkfd drm/amdkfd: fix improper return value on error 2017-10-08 10:26:05 +02:00
include drm/amdgpu: fix amdgpu_need_full_reset (v2) 2016-10-14 11:51:04 -04:00
powerplay drm/amd/powerplay: refine vce dpm update code on Cz. 2017-07-05 14:40:25 +02:00
scheduler drm/amd: fix scheduler fence teardown order v2 2016-10-31 12:43:20 -04:00