Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;