]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7508a1ec07094d0bd797583dac70d2e7fb9860bf
tree89184b852f548cedf083525bfd046c37d33a23ca
parent985dbc09f1043281a3bd54cdae0f98b087b9f5f5
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: aa3287591b0b ("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