projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] wrong order of arguments in copy_to_user() in ncpfs
[linux-2.6-block.git]
/
fs
/
ncpfs
/
ioctl.c
diff --git
a/fs/ncpfs/ioctl.c
b/fs/ncpfs/ioctl.c
index a89ac84a8241a53d4e260deda2ad7d7f8c675255..589d1eac55c1c97499d8b1a13626dde1b869f3f5 100644
(file)
--- a/
fs/ncpfs/ioctl.c
+++ b/
fs/ncpfs/ioctl.c
@@
-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