Skip to content

Commit

Permalink
[PATCH] spufs: initialize context correctly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dirk Herrendoerfer authored and Paul Mackerras committed Mar 27, 2006
1 parent 6df10a8 commit ca3e91c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/platforms/cell/spufs/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ca3e91c

Please sign in to comment.