diff options
| author | Dan Carpenter <[email protected]> | 2016-10-13 08:54:31 +0000 |
|---|---|---|
| committer | Eric Anholt <[email protected]> | 2016-10-17 17:00:11 +0000 |
| commit | b2cdeb19f16ad984eb5bb9193f793d05a8101511 (patch) | |
| tree | cbad29c7d537e3c72755377460a7b5222f7a35d3 /drivers/gpu/drm/vc4/vc4_validate_shaders.c | |
| parent | Linux 4.9-rc1 (diff) | |
| download | kernel-b2cdeb19f16ad984eb5bb9193f793d05a8101511.tar.gz kernel-b2cdeb19f16ad984eb5bb9193f793d05a8101511.zip | |
drm/vc4: Fix a couple error codes in vc4_cl_lookup_bos()
If the allocation fails the current code returns success. If
copy_from_user() fails it returns the number of bytes remaining instead
of -EFAULT.
Fixes: d5b1a78a772f ("drm/vc4: Add support for drawing 3D frames.")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_validate_shaders.c')
0 files changed, 0 insertions, 0 deletions
