[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:
parent
8dc42f9e03
commit
5c09d96b34
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user