ASoC: amd: memory release for rtd structure
authorMukunda, Vijendar <Vijendar.Mukunda@amd.com>
Tue, 8 May 2018 04:47:49 +0000 (10:17 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 21 May 2018 15:19:04 +0000 (16:19 +0100)
commitcac6f59717e1084552e509172d40d5c9d278feb9
tree3daba6df27c56332145e5fa8ebe5c12541ee4da2
parent18e8a40dd387856e7f7a067dcfecbe644afe6944
ASoC: amd: memory release for rtd structure

rtd structure freed early may result in kernel panic in dma close
call back. moved releasing memory for rtd structure to the end of
dma close callback.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-pcm-dma.c