dmaengine: intel_mid_dma: locking and freeing fixes
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 16 Dec 2011 09:01:38 +0000 (11:01 +0200)
committerVinod Koul <vinod.koul@linux.intel.com>
Fri, 23 Dec 2011 16:20:57 +0000 (21:50 +0530)
Two issues are fixed:

1. DMA descriptors are reused so when freeing lli structures
that are linked to them, the pointer must be nulled.

2. midc_scan_descriptors() must be called with the
channel lock held.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>

No differences found