projects/linux·commit 190a4408

[POWERPC] Fix dcr_unmap()

190a4408 · Jean-Christophe Dubois <[email protected]> · 2007-03-28 11:07:41 +01:00

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 <[email protected]>
Acked-by: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
Commit
190a4408ecb577391ea5fbd1f90148a6992a5756
Parents
e5c465f5

Changes

1 files changed · +1 −1

FileStatusAddDelContent
arch/powerpc/sysdev/dcr.cmodified+1−1View file

arch/powerpc/sysdev/dcr.c

View file
diff --git a/arch/powerpc/sysdev/dcr.c b/arch/powerpc/sysdev/dcr.c
index dffeeae..1fc5819 100644
--- 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;
}