linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: fix dcr_unmap()
@ 2007-03-28 10:07 Jean-Christophe Dubois
  2007-03-28 12:42 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 4+ messages in thread
From: Jean-Christophe Dubois @ 2007-03-28 10:07 UTC (permalink / raw)
  To: linuxppc-dev

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>

Index: linux-2.6.20/arch/powerpc/sysdev/dcr.c
===================================================================
--- linux-2.6.20.orig/arch/powerpc/sysdev/dcr.c
+++ linux-2.6.20/arch/powerpc/sysdev/dcr.c
@@ -129,7 +129,7 @@ void dcr_unmap(dcr_host_t host, unsigned
 
 	if (h.token == NULL)
 		return;
-	h.token -= dcr_n * h.stride;
+	h.token += dcr_n * h.stride;
 	iounmap(h.token);
 	h.token = NULL;
 }

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-03-28 22:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-28 10:07 [PATCH] powerpc: fix dcr_unmap() Jean-Christophe Dubois
2007-03-28 12:42 ` Benjamin Herrenschmidt
2007-03-28 20:55   ` Linus Torvalds
2007-03-28 22:24     ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).