commit | b2cdeb19f16ad984eb5bb9193f793d05a8101511 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Oct 13 11:54:31 2016 +0300 |
committer | Eric Anholt <eric@anholt.net> | Mon Oct 17 10:00:11 2016 -0700 |
tree | cbad29c7d537e3c72755377460a7b5222f7a35d3 | |
parent | 1001354ca34179f3db924eb66672442a173147dc [diff] |
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 <dan.carpenter@oracle.com> Reviewed-by: Eric Anholt <eric@anholt.net>