linux-stable/sound/soc/mediatek/common
Aashish Sharma beed115c2c
ASoC: mediatek: common: Fix refcount leak in parse_dai_link_info
Add missing of_node_put()s before the returns to balance
of_node_get()s and of_node_put()s, which may get unbalanced
in case the for loop 'for_each_available_child_of_node' returns
early.

Fixes: 4302187d95 ("ASoC: mediatek: common: add soundcard driver common code")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@inria.fr>
Link: https://lore.kernel.org/r/202304090504.2K8L6soj-lkp@intel.com/
Signed-off-by: Aashish Sharma <shraash@google.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Trevor Wu <trevor.wu@mediatek.com>
Link: https://lore.kernel.org/r/20230411003431.4048700-1-shraash@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-04-11 12:40:07 +01:00
..
Makefile ASoC: mediatek: common: add soundcard driver common code 2023-01-16 11:16:29 +00:00
mtk-afe-fe-dai.c ASoC: mediatek: remove unnecessary initialization 2021-10-27 11:31:12 +01:00
mtk-afe-fe-dai.h ASoC: mediatek: move .suspend/.resume to component 2020-01-21 17:03:54 +00:00
mtk-afe-platform-driver.c ASoC: mediatek: use asoc_substream_to_rtd() 2020-07-23 19:07:32 +01:00
mtk-afe-platform-driver.h ASoC: mediatek: Use managed buffer allocation 2019-12-12 15:41:13 +00:00
mtk-base-afe.h ASoC: mediatek: common: add SMC ops and SMC CMD 2023-01-16 11:16:20 +00:00
mtk-btcvsd.c ASoC: mediatek: mtk-btcvsd: Convert to platform remove callback returning void 2023-03-20 13:08:35 +00:00
mtk-dsp-sof-common.c ASoC: mediatek: use helper function 2023-01-31 11:05:02 +00:00
mtk-dsp-sof-common.h ASoC: mediatek: mt8195: extract SOF common code 2022-07-18 13:45:16 +01:00
mtk-soc-card.h ASoC: mediatek: mt8195: extract SOF common code 2022-07-18 13:45:16 +01:00
mtk-soundcard-driver.c ASoC: mediatek: common: Fix refcount leak in parse_dai_link_info 2023-04-11 12:40:07 +01:00
mtk-soundcard-driver.h ASoC: mediatek: common: add soundcard driver common code 2023-01-16 11:16:29 +00:00