Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c09d96b authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[PATCH] wrong order of arguments in copy_to_user() in ncpfs

parent 8dc42f9e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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