Re: [PATCH] dmaengine: jz4780: fix resource leaks on error exit return

From: Vinod Koul
Date: Fri Sep 30 2016 - 13:44:26 EST

On Thu, Sep 29, 2016 at 06:45:05PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> In two cases when jz4780_dma_setup_hwdesc fails, there is a memory
> leak on the allocated desc and associated DMA pools on the error
> exit return path. Fix this by free'ing the resources before
> returning.

Applied, thanks