]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Add missing __user annotation
authorThierry Reding <treding@nvidia.com>
Mon, 21 Jul 2014 11:24:37 +0000 (13:24 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 22 Jul 2014 00:57:20 +0000 (10:57 +1000)
commit64be98f36fee71679f15ed60297bcb93d80eb5e6
tree7d8c457c1fd00d824d7d869bfb6fe49eb2ece739
parent55a313baad4c501bc13f111ab3534dce66a6729c
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>
drivers/gpu/drm/drm_drv.c