aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDirk Herrendoerfer <herrendo@de.ibm.com>2006-03-23 00:00:13 +0100
committerPaul Mackerras <paulus@samba.org>2006-03-27 14:48:30 +1100
commitca3e91cb0cd53da70621f85d24a080b23751a013 (patch)
tree3200ffe0b07f0a2a9b513ac5a1add6c0e7910896 /arch
parent6df10a82f8de89c66eb91c371d62d76e87b2cbba (diff)
[PATCH] spufs: initialize context correctly
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/cell/spufs/context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/context.c b/arch/powerpc/platforms/cell/spufs/context.c
index 3f75c1e7ade..8bb33abfad1 100644
--- a/arch/powerpc/platforms/cell/spufs/context.c
+++ b/arch/powerpc/platforms/cell/spufs/context.c
@@ -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;