提交 5c09d96b 编写于 作者: A Al Viro 提交者: Linus Torvalds

[PATCH] wrong order of arguments in copy_to_user() in ncpfs

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 8dc42f9e
......@@ -726,7 +726,7 @@ int ncp_ioctl(struct inode *inode, struct file *filp,
struct compat_ncp_privatedata_ioctl user32;
user32.len = user.len;
user32.data = (unsigned long) user.data;
if (copy_to_user(&user32, argp, sizeof(user32)))
if (copy_to_user(argp, &user32, sizeof(user32)))
return -EFAULT;
} else
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册