summaryrefslogtreecommitdiff
path: root/sound/soc/qcom
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-07-11 15:51:01 +0100
committerMark Brown <broonie@kernel.org>2022-07-11 15:51:01 +0100
commit39c5c44fc451c083908e77c3b2762fae2bf8acca (patch)
tree6e3c05c56e48fa9d29ad1f89614e9f0ef48459d4 /sound/soc/qcom
parenteaa27e7fe43f16fe587c3e93fd5c25ce86be3c43 (diff)
parent26b9f2fa7b1c6aba6fa9b83274a3e54868f69562 (diff)
ASoC: Merge up fixes
Needed for the Rockchip driver.
Diffstat (limited to 'sound/soc/qcom')
-rw-r--r--sound/soc/qcom/qdsp6/q6apm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/qcom/qdsp6/q6apm.c b/sound/soc/qcom/qdsp6/q6apm.c
index f424d7aa389a..794019286c70 100644
--- a/sound/soc/qcom/qdsp6/q6apm.c
+++ b/sound/soc/qcom/qdsp6/q6apm.c
@@ -75,6 +75,7 @@ static struct audioreach_graph *q6apm_get_audioreach_graph(struct q6apm *apm, ui
id = idr_alloc(&apm->graph_idr, graph, graph_id, graph_id + 1, GFP_KERNEL);
if (id < 0) {
dev_err(apm->dev, "Unable to allocate graph id (%d)\n", graph_id);
+ kfree(graph->graph);
kfree(graph);
mutex_unlock(&apm->lock);
return ERR_PTR(id);