]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card: fix an use-after-free in simple_for_each_link()
authorWen Yang <wen.yang99@zte.com.cn>
Wed, 10 Jul 2019 07:25:07 +0000 (15:25 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jul 2019 15:33:55 +0000 (16:33 +0100)
commitc5f6a2b9daea945f4eb627f43579d7e7a7fb034e
tree2d50bdb26c3429189e5eb9522c5be5d6171c1384
parent9635a13a3727749112dc6f3af775fc54d7912d01
ASoC: simple-card: fix an use-after-free in simple_for_each_link()

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

Fixes: 2135be1342ee ("ASoC: simple-card: cleanup DAI link loop method - step1")
Link: https://lore.kernel.org/r/1562743509-30496-3-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