public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wrong order of arguments in copy_to_user() in ncpfs
@ 2006-10-09 19:24 Al Viro
  0 siblings, 0 replies; only message in thread
From: Al Viro @ 2006-10-09 19:24 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 fs/ncpfs/ioctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ncpfs/ioctl.c b/fs/ncpfs/ioctl.c
index a89ac84..589d1ea 100644
--- a/fs/ncpfs/ioctl.c
+++ b/fs/ncpfs/ioctl.c
@@ -726,7 +726,7 @@ #ifdef CONFIG_COMPAT
 				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
-- 
1.4.2.GIT


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-09 19:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-09 19:24 [PATCH] wrong order of arguments in copy_to_user() in ncpfs Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox