ASoC: simple-card: fix an use-after-free in simple_dai_link_of_dpcm()
authorWen Yang <wen.yang99@zte.com.cn>
Wed, 10 Jul 2019 07:25:06 +0000 (15:25 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jul 2019 15:33:49 +0000 (16:33 +0100)
commit724808ad556c15e9473418d082f8aae81dd267f6
tree2f9ab6505cb421d81c85a6eea73deb4b7e20b1dc
parent794fcee8da3c0c8a01b08ecad1c181cb0a622868
ASoC: simple-card: fix an use-after-free in simple_dai_link_of_dpcm()

The node variable is still being used after the of_node_put() call,
which may result in use-after-free.

Fixes: cfc652a73331 ("ASoC: simple-card: tidyup prefix for snd_soc_codec_conf")
Link: https://lore.kernel.org/r/1562743509-30496-2-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/simple-card.c