Commit d3cf40ed authored by Thierry Reding's avatar Thierry Reding Committed by Dave Airlie

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: default avatarThierry Reding <treding@nvidia.com>
Reviewed-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent e7c36347
...@@ -233,7 +233,7 @@ module_exit(drm_core_exit); ...@@ -233,7 +233,7 @@ module_exit(drm_core_exit);
/** /**
* Copy and IOCTL return string to user space * 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; int len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment