aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vc4/vc4_validate_shaders.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2016-10-13 08:54:31 +0000
committerEric Anholt <[email protected]>2016-10-17 17:00:11 +0000
commitb2cdeb19f16ad984eb5bb9193f793d05a8101511 (patch)
treecbad29c7d537e3c72755377460a7b5222f7a35d3 /drivers/gpu/drm/vc4/vc4_validate_shaders.c
parentLinux 4.9-rc1 (diff)
downloadkernel-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