ASoC: qdsp6: q6asm-dai: Fix a small memory leak
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 21 Dec 2018 09:06:10 +0000 (12:06 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 3 Jan 2019 16:32:56 +0000 (16:32 +0000)
commita41d9dbf5dac5b6a1283ee8001f22807d18352ea
tree03514d5e51fb1ac125d308796b32a6e31637f05d
parent3391034e18b35bba8904cae457598ac276ac685a
ASoC: qdsp6: q6asm-dai: Fix a small memory leak

We can't return directly if snd_dma_alloc_pages() fails; we first need
to free prtd->audio_client and prtd.

Fixes: 22930c79ac5c ("ASoC: qdsp6: q6asm-dai: Add support to compress offload")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6asm-dai.c