drm/msm: return -EFAULT instead of bytes remaining
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Jul 2016 10:35:29 +0000 (13:35 +0300)
committerRob Clark <robdclark@gmail.com>
Sat, 16 Jul 2016 14:29:32 +0000 (10:29 -0400)
commit5745d21f9a92fa3b70149df69574a13becc3d53e
treeff3a878abd84eafc7b77c146a73c1f8192a8df4f
parent06f3217207766b4bc2e56b88e0736037ae92fd30
drm/msm: return -EFAULT instead of bytes remaining

copy_to/from_user returns the number of bytes remaining to be copied but
we want to return -EFAULT.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_perf.c
drivers/gpu/drm/msm/msm_rd.c