summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/fsl/fsl_utils.c')
-rw-r--r--sound/soc/fsl/fsl_utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_utils.c b/sound/soc/fsl/fsl_utils.c
index b9e42b503a37..4f8bdb7650e8 100644
--- a/sound/soc/fsl/fsl_utils.c
+++ b/sound/soc/fsl/fsl_utils.c
@@ -75,6 +75,7 @@ int fsl_asoc_get_dma_channel(struct device_node *ssi_np,
iprop = of_get_property(dma_np, "cell-index", NULL);
if (!iprop) {
of_node_put(dma_np);
+ of_node_put(dma_channel_np);
return -EINVAL;
}
*dma_id = be32_to_cpup(iprop);