diff options
author | Dirk Herrendoerfer <herrendo@de.ibm.com> | 2006-03-22 23:00:13 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-27 03:48:30 (GMT) |
commit | ca3e91cb0cd53da70621f85d24a080b23751a013 (patch) | |
tree | 3200ffe0b07f0a2a9b513ac5a1add6c0e7910896 /arch/powerpc/platforms/cell/spufs/context.c | |
parent | 6df10a82f8de89c66eb91c371d62d76e87b2cbba (diff) | |
download | linux-fsl-qoriq-ca3e91cb0cd53da70621f85d24a080b23751a013.tar.xz |
[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/platforms/cell/spufs/context.c')
-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 3f75c1e..8bb33ab 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; |