diff options
| author | Andreas Hecht <[email protected]> | 2021-06-24 15:25:35 +0000 |
|---|---|---|
| committer | Wolfram Sang <[email protected]> | 2021-06-24 19:47:43 +0000 |
| commit | 3265a7e6b41bae8608e7e91ac6798de5e5564164 (patch) | |
| tree | b27f825fa9063d3a45c72a75adde8297f1887b5a /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | i2c: cp2615: check for allocation failure in cp2615_i2c_recv() (diff) | |
| download | kernel-3265a7e6b41bae8608e7e91ac6798de5e5564164.tar.gz kernel-3265a7e6b41bae8608e7e91ac6798de5e5564164.zip | |
i2c: dev: Add __user annotation
Fix Sparse warnings:
drivers/i2c/i2c-dev.c:546:19: warning: incorrect type in assignment (different address spaces)
drivers/i2c/i2c-dev.c:549:53: warning: incorrect type in argument 2 (different address spaces)
compat_ptr() returns a pointer tagged __user which gets assigned to a
pointer missing the __user annotation. The same pointer is passed to
copy_from_user() as an argument where it is expected to have the __user
annotation. Fix both by adding the __user annotation to the pointer.
Fixes: 7d5cb45655f2 ("i2c compat ioctls: move to ->compat_ioctl()")
Signed-off-by: Andreas Hecht <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
