Re: [PATCH] dmaengine: fix regression introduced byd6103085dfd83c13db65c3bd7e182f021d77c541

From: Atsushi Nemoto
Date: Tue Mar 31 2009 - 21:22:06 EST


On Tue, 31 Mar 2009 18:07:34 +0200 (CEST), Guennadi Liakhovetski <lg@xxxxxxx> 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 <lg@xxxxxxx>

Oops! your fix is correct. Thank you for fixing this nasty bug.

---
Atsushi Nemoto
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/