]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] wrong order of arguments in copy_to_user() in ncpfs
authorAl Viro <viro@ftp.linux.org.uk>
Mon, 9 Oct 2006 19:24:49 +0000 (20:24 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Oct 2006 21:19:08 +0000 (14:19 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ncpfs/ioctl.c

index a89ac84a8241a53d4e260deda2ad7d7f8c675255..589d1eac55c1c97499d8b1a13626dde1b869f3f5 100644 (file)
@@ -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