提交 190a4408 编写于 作者: J Jean-Christophe Dubois 提交者: Paul Mackerras

[POWERPC] Fix dcr_unmap()

Fix a bug in dcr_unmap().

At unmap time the DCR offset need to be added instead of substracted.
Signed-off-by: NJean-Christophe Dubois <jdubois@mc.com>
Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 e5c465f5
......@@ -129,7 +129,7 @@ void dcr_unmap(dcr_host_t host, unsigned int dcr_n, unsigned int dcr_c)
if (h.token == NULL)
return;
h.token -= dcr_n * h.stride;
h.token += dcr_n * h.stride;
iounmap(h.token);
h.token = NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册