]> err.no Git - linux-2.6/commitdiff
[PATCH] spufs: initialize context correctly
authorDirk Herrendoerfer <herrendo@de.ibm.com>
Wed, 22 Mar 2006 23:00:13 +0000 (00:00 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 27 Mar 2006 03:48:30 +0000 (14:48 +1100)
the mfc member of a new context was not initialized to zero,
which potentially leads to wild memory accesses.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/context.c

index 3f75c1e7adead18cf3b692cbd8e6885a9dc9e70c..8bb33abfad175b721e86b948f2ab1bdb57ccea5d 100644 (file)
@@ -51,6 +51,7 @@ struct spu_context *alloc_spu_context(void)
        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;