]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: audio-graph-card: fix use-after-free in graph_dai_link_of_dpcm()
authorWen Yang <wen.yang99@zte.com.cn>
Wed, 10 Jul 2019 07:25:08 +0000 (15:25 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jul 2019 15:33:56 +0000 (16:33 +0100)
commitabc6d58477fa5027ba6ba91f26746b4f83e96649
treeaccc5caeb5073d9ffdc8461dafd5afb91af7a5a4
parentc5f6a2b9daea945f4eb627f43579d7e7a7fb034e
ASoC: audio-graph-card: fix use-after-free in graph_dai_link_of_dpcm()

After calling of_node_put() on the ports, port, and node variables,
they are still being used, which may result in use-after-free.
Fix this issue by calling of_node_put() after the last usage.

Fixes: e56f5456f870 ("ASoC: audio-graph-card: cleanup DAI link loop method - step1")
Link: https://lore.kernel.org/r/1562743509-30496-4-git-send-email-wen.yang99@zte.com.cn
Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card.c