Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8bf79388 authored by Pan Bian's avatar Pan Bian Committed by Oded Gabbay
Browse files

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: default avatarPan Bian <bianpan2016@163.com>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent a7522cd9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment