[patch 1/2] drm/tegra: return -EFAULT if copy_from_user() fails

Thierry Reding thierry.reding at gmail.com
Fri Nov 8 04:35:37 PST 2013


On Fri, Nov 08, 2013 at 01:07:37PM +0300, Dan Carpenter wrote:
> copy_from_user() returns the number of bytes remaining if it fails, but
> we want to return -EFAULT here.
> 
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>

Applied (manually because there was a conflict with the __user
annotation fix that I did earlier).

Thanks,
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131108/a9f00eaa/attachment-0001.pgp>


More information about the dri-devel mailing list