|
@@ -280,7 +280,7 @@ int RIOBootCodeHOST(struct rio_info *p, struct DownLoad *rbp)
|
|
func_exit();
|
|
func_exit();
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
}
|
|
}
|
|
- if (copy_from_user(rbp->DataP, DownCode, rbp->Count)) {
|
|
|
|
|
|
+ if (copy_from_user(DownCode, rbp->DataP, rbp->Count)) {
|
|
kfree(DownCode);
|
|
kfree(DownCode);
|
|
p->RIOError.Error = COPYIN_FAILED;
|
|
p->RIOError.Error = COPYIN_FAILED;
|
|
func_exit();
|
|
func_exit();
|