Commit ca3e91cb authored by Dirk Herrendoerfer's avatar Dirk Herrendoerfer Committed by Paul Mackerras

[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: default avatarArnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 6df10a82
...@@ -51,6 +51,7 @@ struct spu_context *alloc_spu_context(void) ...@@ -51,6 +51,7 @@ struct spu_context *alloc_spu_context(void)
ctx->ibox_fasync = NULL; ctx->ibox_fasync = NULL;
ctx->wbox_fasync = NULL; ctx->wbox_fasync = NULL;
ctx->mfc_fasync = NULL; ctx->mfc_fasync = NULL;
ctx->mfc = NULL;
ctx->tagwait = 0; ctx->tagwait = 0;
ctx->state = SPU_STATE_SAVED; ctx->state = SPU_STATE_SAVED;
ctx->local_store = NULL; ctx->local_store = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment