提交 21b29229 编写于 作者: V viro@ZenIV.linux.org.uk 提交者: Linus Torvalds

[PATCH] trivial __user cleanup (video1394)

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册