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

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Al Viro 2006-10-09 20:24:49 +01:00 committed by Linus Torvalds
parent 8dc42f9e03
commit 5c09d96b34
1 changed files with 1 additions and 1 deletions

View File

@ -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