Skip to content

Commit

Permalink
[PATCH] wrong order of arguments in copy_to_user() in ncpfs
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 9, 2006
1 parent 8dc42f9 commit 5c09d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ncpfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c09d96

Please sign in to comment.