mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 13:13:57 +08:00
[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>
This commit is contained in:
parent
6df10a82f8
commit
ca3e91cb0c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user