summaryrefslogtreecommitdiff
path: root/samples/uhid
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2016-12-01 16:10:42 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-08 10:14:17 +0200
commit8b2522eb44aed2b81d0958000a18f2ba8fb59ac3 (patch)
treeb8f289e2ae8836cca5f462036a6e815dbbca75c9 /samples/uhid
parentbf184ddd2180724aa0a2293415d051dc856e22ee (diff)
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>
Diffstat (limited to 'samples/uhid')
0 files changed, 0 insertions, 0 deletions