提交 1bf08719 编写于 作者: A Al Viro

[PATCH] handling rio MEMDUMP

it copies data _from_ iomem, so it should be rio_memcpy_fromio(), not
->Copy().
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 ae5b28a5
......@@ -696,7 +696,7 @@ void RIOPollHostCommands(struct rio_info *p, struct Host *HostP)
FreeMe = RIOCommandRup(p, Rup, HostP, PacketP);
if (PacketP->data[5] == MEMDUMP) {
rio_dprintk(RIO_DEBUG_CMD, "Memdump from 0x%x complete\n", *(unsigned short *) & (PacketP->data[6]));
HostP->Copy(&(PacketP->data[8]), p->RIOMemDump, 32);
rio_memcpy_fromio(p->RIOMemDump, &(PacketP->data[8]), 32);
}
rio_spin_lock_irqsave(&UnixRupP->RupLock, flags);
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册