[PATCH] powerpc: fix dcr_unmap()
Benjamin Herrenschmidt
benh at kernel.crashing.org
Wed Mar 28 22:42:56 EST 2007
On Wed, 2007-03-28 at 11:07 +0100, Jean-Christophe Dubois wrote:
> 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 at mc.com>
Acked-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
If possible that should go in 2.6.21
> 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;
> }
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
More information about the Linuxppc-dev
mailing list