From: Nicolin Chen Date: Mon, 16 Jun 2014 03:32:29 +0000 (+0800) Subject: dmaengine: imx-sdma: Save imx_dma_data into sdmac X-Git-Tag: omap-for-v3.17/fixes-against-rc2~88^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b3518652c596b00c1592b5adb2544db75b5ef57;p=pandora-kernel.git dmaengine: imx-sdma: Save imx_dma_data into sdmac The filter() function is currently called by xlate() while it transfers imx_dma_data as a local variable to the filter() but releases the data right after returning a DMA channel pointer, which results chan->private pointing an invalid memory space. So this patch just stores the imx_dma_data into sdmac to make usre the private pointer valid as long as the channel exists. Signed-off-by: Nicolin Chen Signed-off-by: Vinod Koul --- Reading git-diff-tree failed