Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762149AbZCaQd7 (ORCPT ); Tue, 31 Mar 2009 12:33:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753425AbZCaQdu (ORCPT ); Tue, 31 Mar 2009 12:33:50 -0400 Received: from mga02.intel.com ([134.134.136.20]:56963 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753124AbZCaQdu (ORCPT ); Tue, 31 Mar 2009 12:33:50 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.38,453,1233561600"; d="scan'208";a="399091402" Message-ID: <49D245EA.80704@intel.com> Date: Tue, 31 Mar 2009 09:33:46 -0700 From: Dan Williams User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Guennadi Liakhovetski CC: "linux-kernel@vger.kernel.org" , Atsushi Nemoto , "Sosnowski, Maciej" Subject: Re: [PATCH] dmaengine: fix regression introduced by d6103085dfd83c13db65c3bd7e182f021d77c541 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1194 Lines: 32 Guennadi Liakhovetski wrote: > chan is an index variable, used to loop over a list of channels, and here > it is used _after_ the loop, in which case it doesn't point to a DMA > channel struct anymore. Dereferencing it leads to a corruption of a random > memory location, which in my case was a pointer inside a clock struct. Fix > it by using a local variable pointing to the DMA device. > > Signed-off-by: Guennadi Liakhovetski > --- > > Guys, this was a _real_ bad joke, cost me almost a day, and that patch has > been reviewed by two persons... > > > So far 2.6.29(-next) has been very bad for me, regressions all over the > place, lots of wasted time hunting them down:-( > > Guennadi, Thanks for testing the 'next' branch and finding this before it hit mainline. I will fold this change into the existing commit with a [lg@denx.de: fix bad usage of 'chan' in dma_async_device_register] Regards, Dan -- 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/