]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Fix a couple error codes in vc4_cl_lookup_bos()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 13 Oct 2016 08:54:31 +0000 (11:54 +0300)
committerEric Anholt <eric@anholt.net>
Mon, 17 Oct 2016 17:00:11 +0000 (10:00 -0700)
commit2ca94142956c65ab1ba04852705ca724f321e082
treecbad29c7d537e3c72755377460a7b5222f7a35d3
parent1df7eb1ca477b826c461b694d57789b4da41844a
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: 41a848afb4db ("drm/vc4: Add support for drawing 3D frames.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_gem.c