Commit 21b29229 authored by viro@ZenIV.linux.org.uk's avatar viro@ZenIV.linux.org.uk Committed by Linus Torvalds

[PATCH] trivial __user cleanup (video1394)

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 18fb9442
......@@ -883,7 +883,7 @@ static int __video1394_ioctl(struct file *file,
v.channel);
}
if (copy_to_user((void *)arg, &v, sizeof(v))) {
if (copy_to_user(argp, &v, sizeof(v))) {
/* FIXME : free allocated dma resources */
return -EFAULT;
}
......
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