projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5c465f
)
[POWERPC] Fix dcr_unmap()
author
Jean-Christophe Dubois
<jdubois@mc.com>
Wed, 28 Mar 2007 10:07:41 +0000
(11:07 +0100)
committer
Paul Mackerras
<paulus@samba.org>
Wed, 28 Mar 2007 23:49:23 +0000
(09:49 +1000)
Fix a bug in dcr_unmap().
At unmap time the DCR offset need to be added instead of substracted.
Signed-off-by: Jean-Christophe Dubois <jdubois@mc.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/dcr.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/sysdev/dcr.c
b/arch/powerpc/sysdev/dcr.c
index dffeeaeca1d938ea9ef740d9d5be5a114b336f0f..1fc5819e7d18d595b7f37e364ce9b52e8efe9591 100644
(file)
--- a/
arch/powerpc/sysdev/dcr.c
+++ b/
arch/powerpc/sysdev/dcr.c
@@
-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;
}