diff options
author | Dirk Herrendoerfer <herrendo@de.ibm.com> | 2006-03-22 18:00:13 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-26 22:48:30 -0500 |
commit | ca3e91cb0cd53da70621f85d24a080b23751a013 (patch) | |
tree | 3200ffe0b07f0a2a9b513ac5a1add6c0e7910896 /arch/powerpc | |
parent | 6df10a82f8de89c66eb91c371d62d76e87b2cbba (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/powerpc')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/context.c | 1 |
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 3f75c1e7adea..8bb33abfad17 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) | |||
51 | ctx->ibox_fasync = NULL; | 51 | ctx->ibox_fasync = NULL; |
52 | ctx->wbox_fasync = NULL; | 52 | ctx->wbox_fasync = NULL; |
53 | ctx->mfc_fasync = NULL; | 53 | ctx->mfc_fasync = NULL; |
54 | ctx->mfc = NULL; | ||
54 | ctx->tagwait = 0; | 55 | ctx->tagwait = 0; |
55 | ctx->state = SPU_STATE_SAVED; | 56 | ctx->state = SPU_STATE_SAVED; |
56 | ctx->local_store = NULL; | 57 | ctx->local_store = NULL; |