From: Dirk Herrendoerfer Date: Wed, 22 Mar 2006 23:00:13 +0000 (+0100) Subject: [PATCH] spufs: initialize context correctly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ca3e91cb0cd53da70621f85d24a080b23751a013;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/platforms/cell/spufs/context.c b/arch/powerpc/platforms/cell/spufs/context.c index 3f75c1e7adea..8bb33abfad17 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;