diff options
author | Thierry Reding <treding@nvidia.com> | 2014-07-21 13:24:37 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-07-22 10:57:20 +1000 |
commit | d3cf40ed7fa1b56bd53d3b52eddf44d0e3c3ec20 (patch) | |
tree | 7d8c457c1fd00d824d7d869bfb6fe49eb2ece739 /drivers/gpu/drm/drm_drv.c | |
parent | e7c36347130fc3b9eec3572d00c53533f07a7347 (diff) | |
download | op-kernel-dev-d3cf40ed7fa1b56bd53d3b52eddf44d0e3c3ec20.zip op-kernel-dev-d3cf40ed7fa1b56bd53d3b52eddf44d0e3c3ec20.tar.gz |
drm: Add missing __user annotation
The drm_copy_field() function copies strings into userspace buffers, so
the first parameter needs to have a __user annotation to avoid warnings
from the sparse checker.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_drv.c')
-rw-r--r-- | drivers/gpu/drm/drm_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 8218078..0cc1827 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c @@ -233,7 +233,7 @@ module_exit(drm_core_exit); /** * Copy and IOCTL return string to user space */ -static int drm_copy_field(char *buf, size_t *buf_len, const char *value) +static int drm_copy_field(char __user *buf, size_t *buf_len, const char *value) { int len; |