aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2022-04-26 08:48:03 +0000
committerAlex Deucher <[email protected]>2022-04-26 15:52:20 +0000
commita52ad5b6ce0df125d0d9ea169b61ae6cc098f047 (patch)
tree20b3218dfc5a938d1515dc457833eb89ce31080c /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentgpu/drm/radeon: Fix typo in comments (diff)
downloadkernel-a52ad5b6ce0df125d0d9ea169b61ae6cc098f047.tar.gz
kernel-a52ad5b6ce0df125d0d9ea169b61ae6cc098f047.zip
drm/amdgpu: debugfs: fix error codes in write functions
There are two error code bugs here. The copy_to/from_user() functions return the number of bytes remaining (a positive number). We should return -EFAULT if the copy fails. Second if we fail because "context.resp_status" is non-zero then return -EINVAL instead of zero. Fixes: e50d9ba0d2cd ("drm/amdgpu: Add debugfs TA load/unload/invoke support") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions