diff options
author | 2016-12-01 16:10:42 +0800 | |
---|---|---|
committer | 2017-01-16 17:34:47 +0200 | |
commit | 8bf793883da213864efc50c274d2b38ec0ca58b2 (patch) | |
tree | 560ed3fb65402f7d379d664b7f8422327bddf385 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | amdkfd: fix spelling mistake in kfd_ioctl_dbg_unrgesiter (diff) | |
download | linux-dev-8bf793883da213864efc50c274d2b38ec0ca58b2.tar.xz linux-dev-8bf793883da213864efc50c274d2b38ec0ca58b2.zip |
drm/amdkfd: fix improper return value on error
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions