Re: [patch] drm/vc4: Return -EFAULT on copy_from_user() failure

2016-03-13 Thread Eric Anholt
Dan Carpenter writes: > The copy_from_user() function returns the number of bytes not copied but > we want to return a negative error code. > > Fixes: 463873d57014 ('drm/vc4: Add an API for creating GPU shaders in GEM > BOs.') > Signed-off-by: Dan Carpenter

Re: [patch] drm/vc4: Return -EFAULT on copy_from_user() failure

2016-03-13 Thread Eric Anholt
Dan Carpenter writes: > The copy_from_user() function returns the number of bytes not copied but > we want to return a negative error code. > > Fixes: 463873d57014 ('drm/vc4: Add an API for creating GPU shaders in GEM > BOs.') > Signed-off-by: Dan Carpenter Pulled. Thanks! signature.asc

[patch] drm/vc4: Return -EFAULT on copy_from_user() failure

2016-03-08 Thread Dan Carpenter
The copy_from_user() function returns the number of bytes not copied but we want to return a negative error code. Fixes: 463873d57014 ('drm/vc4: Add an API for creating GPU shaders in GEM BOs.') Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/vc4/vc4_bo.c

[patch] drm/vc4: Return -EFAULT on copy_from_user() failure

2016-03-08 Thread Dan Carpenter
The copy_from_user() function returns the number of bytes not copied but we want to return a negative error code. Fixes: 463873d57014 ('drm/vc4: Add an API for creating GPU shaders in GEM BOs.') Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/vc4/vc4_bo.c