diff options
| author | Dan Carpenter <[email protected]> | 2015-12-17 12:36:28 +0000 |
|---|---|---|
| committer | Eric Anholt <[email protected]> | 2015-12-17 19:40:11 +0000 |
| commit | 65c4777de54a39b2722a4b1ff3306d044014d511 (patch) | |
| tree | f0b3cbf05dbb84be80010587d655dfdc32b3d1f0 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | Merge tag 'drm-vc4-next-2015-12-11' of http://github.com/anholt/linux into dr... (diff) | |
| download | kernel-65c4777de54a39b2722a4b1ff3306d044014d511.tar.gz kernel-65c4777de54a39b2722a4b1ff3306d044014d511.zip | |
drm/vc4: copy_to_user() returns the number of bytes remaining
The copy_to/from_user() functions return the number of bytes remaining
to be copied. We want to return error codes here.
Also it's a bad idea to print an error message if a copy from user fails
because users can use that to spam /var/log/messages which is annoying
so I removed those.
Fixes: 214613656b51 ('drm/vc4: Add an interface for capturing the GPU state after a hang.')
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
