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

Eric Anholt eric at anholt.net
Mon Mar 14 00:10:45 UTC 2016


Dan Carpenter <dan.carpenter at oracle.com> 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 <dan.carpenter at oracle.com>

Pulled.  Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160313/f86fdc9c/attachment.sig>


More information about the dri-devel mailing list