Skip to content

Commit 190a440

Browse files
Jean-Christophe Duboispaulusmack
authored andcommitted
[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>
1 parent e5c465f commit 190a440

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/powerpc/sysdev/dcr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void dcr_unmap(dcr_host_t host, unsigned int dcr_n, unsigned int dcr_c)
129129

130130
if (h.token == NULL)
131131
return;
132-
h.token -= dcr_n * h.stride;
132+
h.token += dcr_n * h.stride;
133133
iounmap(h.token);
134134
h.token = NULL;
135135
}

0 commit comments

Comments
 (0)