[PATCH] fsldma: fix memory leak on error path in fsl_dma_prep_memcpy()

Li Yang leoli at freescale.com
Fri May 22 20:30:02 EST 2009


On Sat, May 16, 2009 at 12:59 AM, Ira Snyder <iws at ovro.caltech.edu> wrote:
> When preparing a memcpy operation, if the kernel fails to allocate memory
> for a link descriptor after the first link descriptor has already been
> allocated, then some memory will never be released. Fix the problem by
> walking the list of allocated descriptors backwards, and freeing the
> allocated descriptors back into the DMA pool.
>
> Signed-off-by: Ira W. Snyder <iws at ovro.caltech.edu>

Applied the following patches:

      fsldma: fix "DMA halt timeout!" errors
      fsldma: fix infinite loop on multi-descriptor DMA chain completion
      fsldma: snooping is not enabled for last entry in descriptor chain
      fsldma: fix memory leak on error path in fsl_dma_prep_memcpy()

Thanks
- Leo



More information about the Linuxppc-dev mailing list