Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422676AbWCWUoq (ORCPT ); Thu, 23 Mar 2006 15:44:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422685AbWCWUoI (ORCPT ); Thu, 23 Mar 2006 15:44:08 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:37621 "EHLO moutng.kundenserver.de") by vger.kernel.org with ESMTP id S1751493AbWCWUkW (ORCPT ); Thu, 23 Mar 2006 15:40:22 -0500 Message-Id: <20060323203523.069903000@dyn-9-152-242-103.boeblingen.de.ibm.com> References: <20060323203423.620978000@dyn-9-152-242-103.boeblingen.de.ibm.com> User-Agent: quilt/0.44-1 Date: Thu, 23 Mar 2006 00:00:13 +0100 From: Arnd Bergmann To: Paul Mackerras Cc: cbe-oss-dev@ozlabs.org, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, Arnd Bergmann Subject: [patch 13/13] spufs: initialize context correctly Content-Disposition: inline; filename=init_mfc.diff X-Provags-ID: kundenserver.de abuse@kundenserver.de login:c48f057754fc1b1a557605ab9fa6da41 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 969 Lines: 26 the mfc member of a new context was not initialized to zero, which potentially leads to wild memory accesses. From: Dirk Herrendoerfer Signed-off-by: Arnd Bergmann 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/