[PATCH 0/4] Fix some use-after-free problems in sound/soc/generic

From: Wen Yang
Date: Wed Jul 10 2019 - 03:29:12 EST


We developed a coccinelle SmPL to detect sound/sooc/generic code and
found some use-after-free problems.
This patch series fixes those problems.

Wen Yang (4):
ASoC: simple-card: fix an use-after-free in simple_dai_link_of_dpcm()
ASoC: simple-card: fix an use-after-free in simple_for_each_link()
ASoC: audio-graph-card: fix use-after-free in graph_dai_link_of_dpcm()
ASoC: audio-graph-card: fix an use-after-free in graph_get_dai_id()

sound/soc/generic/audio-graph-card.c | 30 ++++++++++++++++--------------
sound/soc/generic/simple-card.c | 26 +++++++++++++-------------
2 files changed, 29 insertions(+), 27 deletions(-)

Cc: Liam Girdwood <lgirdwood@xxxxxxxxx>
Cc: Mark Brown <broonie@xxxxxxxxxx>
Cc: Jaroslav Kysela <perex@xxxxxxxx>
Cc: Takashi Iwai <tiwai@xxxxxxxx>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
Cc: alsa-devel@xxxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx

--
2.9.5