Commit 5c09d96b authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

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


Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8dc42f9e
......@@ -726,7 +726,7 @@ outrel:
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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment