Commit b87b786b authored by Al Viro's avatar Al Viro

Fix trivial misannotations

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent aeba0390
...@@ -343,7 +343,7 @@ static int compat_drm_markbufs(struct file *file, unsigned int cmd, ...@@ -343,7 +343,7 @@ static int compat_drm_markbufs(struct file *file, unsigned int cmd,
{ {
drm_buf_desc32_t b32; drm_buf_desc32_t b32;
drm_buf_desc32_t __user *argp = (void __user *)arg; drm_buf_desc32_t __user *argp = (void __user *)arg;
struct drm_buf_desc __user buf; struct drm_buf_desc buf;
if (copy_from_user(&b32, argp, sizeof(b32))) if (copy_from_user(&b32, argp, sizeof(b32)))
return -EFAULT; return -EFAULT;
...@@ -870,7 +870,7 @@ static int compat_drm_mode_addfb2(struct file *file, unsigned int cmd, ...@@ -870,7 +870,7 @@ static int compat_drm_mode_addfb2(struct file *file, unsigned int cmd,
unsigned long arg) unsigned long arg)
{ {
struct drm_mode_fb_cmd232 __user *argp = (void __user *)arg; struct drm_mode_fb_cmd232 __user *argp = (void __user *)arg;
struct drm_mode_fb_cmd2 __user req64; struct drm_mode_fb_cmd2 req64;
int err; int err;
if (copy_from_user(&req64, argp, if (copy_from_user(&req64, argp,
......
...@@ -115,7 +115,7 @@ static int compat_mga_dma_bootstrap(struct file *file, unsigned int cmd, ...@@ -115,7 +115,7 @@ static int compat_mga_dma_bootstrap(struct file *file, unsigned int cmd,
unsigned long arg) unsigned long arg)
{ {
drm_mga_dma_bootstrap32_t dma_bootstrap32; drm_mga_dma_bootstrap32_t dma_bootstrap32;
drm_mga_dma_bootstrap_t __user dma_bootstrap; drm_mga_dma_bootstrap_t dma_bootstrap;
int err; int err;
if (copy_from_user(&dma_bootstrap32, (void __user *)arg, if (copy_from_user(&dma_bootstrap32, (void __user *)arg,
......
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