diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-05-27 02:00:00 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-05-27 02:27:06 -0400 |
commit | 6bc540e69a6376b9d58d8490f4998da9e45e2746 (patch) | |
tree | 26abbdf8b4e8ca51c2c5dfa015158119d48bb4f4 /drivers/char | |
parent | 1bf087194f01bce5b2d7b39f27d71d5f346fbf08 (diff) | |
download | blackbird-op-linux-6bc540e69a6376b9d58d8490f4998da9e45e2746.tar.gz blackbird-op-linux-6bc540e69a6376b9d58d8490f4998da9e45e2746.zip |
[PATCH] forgotten swap of copyout() arguments
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/rio/rioctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/rio/rioctrl.c b/drivers/char/rio/rioctrl.c index 732e7db5f717..caeae5b774b3 100644 --- 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; |