Commit 64cc12f9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Alex Deucher
Browse files

drm/amdgpu: Fix error codes if copy_to_user() fails



The copy_to_user() function returns the number of bytes that it wasn't
able to copy, but we should return -EFAULT to the user.

Fixes: 4d82724f ("drm/amdgpu: Add mapping info option for GEM_OP ioctl")
Fixes: f9db1fc5 ("drm/amdgpu: Add ioctl to get all gem handles for a process")
Reviewed-By: default avatarDavid Francis <David.Francis@amd.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b7c5334a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment