[FYI/PATCH] Missing SPUFS context initializer

Dirk Herrendoerfer d.herrendoerfer at de.ibm.com
Fri Feb 17 03:45:10 EST 2006


This patch adds a missing initializtaion in the spufs context.
Without this patch unmapping of the mfc file will result in a kernel 
oops.

Index: linux/arch/powerpc/platforms/cell/spufs/context.c
===================================================================
--- linux.orig/arch/powerpc/platforms/cell/spufs/context.c
+++ linux/arch/powerpc/platforms/cell/spufs/context.c
@@ -51,6 +51,7 @@ struct spu_context *alloc_spu_context(vo
         ctx->ibox_fasync = NULL;
         ctx->wbox_fasync = NULL;
         ctx->mfc_fasync = NULL;
+       ctx->mfc = NULL;
         ctx->tagwait = 0;
         ctx->state = SPU_STATE_SAVED;
         ctx->local_store = NULL;




More information about the Linuxppc64-dev mailing list