[patch] drm/vc4: Fix a couple error codes in vc4_cl_lookup_bos()

2016-10-17 Thread Eric Anholt
Dan Carpenter writes: > 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 Reviewed and appli

[patch] drm/vc4: Fix a couple error codes in vc4_cl_lookup_bos()

2016-10-13 Thread Dan Carpenter
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 diff --git a/drivers/gpu/drm/vc4/vc4_gem.c b/drivers/

[patch] drm/vc4: Fix a couple error codes in vc4_cl_lookup_bos()

2016-10-13 Thread Eric Anholt
Dan Carpenter writes: > 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 Looks good. Waiti