projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bf0871
)
[PATCH] forgotten swap of copyout() arguments
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 27 May 2006 06:00:00 +0000
(
02:00
-0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 27 May 2006 06:27:06 +0000
(
02:27
-0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/char/rio/rioctrl.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/rio/rioctrl.c
b/drivers/char/rio/rioctrl.c
index 732e7db5f717700e287c1cc1c93733586de2bbe1..caeae5b774b38b790bc9948dfa12a96f14ae28d3 100644
(file)
--- a/
drivers/char/rio/rioctrl.c
+++ b/
drivers/char/rio/rioctrl.c
@@
-1021,7
+1021,7
@@
int riocontrol(struct rio_info *p, dev_t dev, int cmd, unsigned long arg, int su
}
rio_dprintk(RIO_DEBUG_CTRL, "Request for rup %d from host %d\n", RupReq.RupNum, RupReq.HostNum);
- if (copy_to_user(
HostP->UnixRups[RupReq.RupNum].RupP, RupReq
.RupP, sizeof(struct RUP))) {
+ if (copy_to_user(
RupReq.RupP, HostP->UnixRups[RupReq.RupNum]
.RupP, sizeof(struct RUP))) {
p->RIOError.Error = COPYOUT_FAILED;
rio_dprintk(RIO_DEBUG_CTRL, "RIO_HOST_RUP: Bad copy to user space\n");
return -EFAULT;