Messages in this thread Patch in this message | | | Date | Thu, 23 Mar 2006 00:00:13 +0100 | From | Arnd Bergmann <> | Subject | [patch 13/13] spufs: initialize context correctly |
| |
the mfc member of a new context was not initialized to zero, which potentially leads to wild memory accesses.
From: Dirk Herrendoerfer <herrendo@de.ibm.com> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Index: linux-2.6.16-rc/arch/powerpc/platforms/cell/spufs/context.c =================================================================== --- linux-2.6.16-rc.orig/arch/powerpc/platforms/cell/spufs/context.c +++ linux-2.6.16-rc/arch/powerpc/platforms/cell/spufs/context.c @@ -51,6 +51,7 @@ struct spu_context *alloc_spu_context(vo 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; --
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |