Skip to contentSkip to conversation

wrong order of arguments in copy_to_user() in ncpfs

PATCH New Al Viro 1 participant 1 message Oct 9, 2006

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 wrong order of arguments in copy_to_user() in ncpfs

---
 fs/ncpfs/ioctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ncpfs/ioctl.c +1 -1
index a89ac84..589d1ea 100644
@@ -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
Signature · 1 line
1.4.2.GIT