Skip to content

Commit

Permalink
[POWERPC] Fix dcr_unmap()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean-Christophe Dubois authored and Paul Mackerras committed Mar 28, 2007
1 parent e5c465f commit 190a440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/dcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 190a440

Please sign in to comment.