1
0
Fork 0

[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: Jean-Christophe Dubois <jdubois@mc.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
wifi-calibration
Jean-Christophe Dubois 2007-03-28 11:07:41 +01:00 committed by Paul Mackerras
parent e5c465f5d9
commit 190a4408ec
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}