]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/tegra: return -EFAULT if copy_from_user() fails
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Nov 2013 10:07:37 +0000 (13:07 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 3 Dec 2013 09:14:03 +0000 (10:14 +0100)
commit9a991600e379641b9c16310b87ca848b6da01c24
treedcc8b45afed526275807c95d78e044a4118f434e
parentd24b2898ceea603864c6d12540d6768edcc9cd40
drm/tegra: return -EFAULT if copy_from_user() fails

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@oracle.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c