drm/msm: fix an error code in the ioctl
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Feb 2019 07:19:27 +0000 (10:19 +0300)
committerRob Clark <robdclark@gmail.com>
Tue, 19 Feb 2019 19:53:50 +0000 (14:53 -0500)
commit7cce8e4efe5e782e130f79f8d55fdad48f2db52d
tree89184b852f548cedf083525bfd046c37d33a23ca
parentb6bd458c16ac2a7122fc4bc62bbdc66c9310ded7
drm/msm: fix an error code in the ioctl

The copy_to/from_user() functions return the number of bytes remaining
to be copied but we should return -EFAULT to the user.

Fixes: f05c83e77460 ("drm/msm: add uapi to get/set debug name")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_drv.c