linux_dsm_epyc7002/sound/soc/meson
Jerome Brunet 960f428ca0
ASoC: meson: axg-card: fix null pointer dereference in clean up
When using modern dai_link style, we must first make sure the
struct snd_soc_dai_link_component exists before accessing its members.

In case of early probe deferral, some of the '.cpus' or '.codecs' may not
have been allocated yet. Check this before calling of_node_put() on the
structure member.

Fixes: c84836d7f6 ("ASoC: meson: axg-card: use modern dai_link style")
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-06-10 15:39:26 +01:00
..
axg-card.c ASoC: meson: axg-card: fix null pointer dereference in clean up 2019-06-10 15:39:26 +01:00
axg-fifo.c ASoC: meson: axg-fifo: add g12a support 2019-04-05 09:25:33 +07:00
axg-fifo.h ASoC: meson: axg-fifo: add g12a support 2019-04-05 09:25:33 +07:00
axg-frddr.c ASoC: meson: axg-frddr: add g12a support 2019-04-05 09:26:18 +07:00
axg-pdm.c ASoC: meson: add axg pdm input 2018-08-29 16:04:17 +01:00
axg-spdifin.c ASoC: meson: fix do_div warning in spdifin 2018-12-13 16:20:28 +00:00
axg-spdifout.c ASoC: meson: add axg spdif output 2018-07-18 13:08:39 +01:00
axg-tdm-formatter.c ASoC: meson: axg-tdm-formatter: rework quirks settings 2019-04-05 09:26:39 +07:00
axg-tdm-formatter.h ASoC: meson: axg-tdm-formatter: rework quirks settings 2019-04-05 09:26:39 +07:00
axg-tdm-interface.c ASoC: meson: axg-tdm: restrict formats depending on slot width 2018-08-28 19:53:35 +01:00
axg-tdm.h ASoC: meson: add tdm interface driver 2018-07-20 17:38:33 +01:00
axg-tdmin.c ASoC: meson: axg-tdm-formatter: rework quirks settings 2019-04-05 09:26:39 +07:00
axg-tdmout.c ASoC: meson: axg-tdmout: add g12a support 2019-04-05 09:27:00 +07:00
axg-toddr.c ASoC: meson: axg-toddr: add g12a support 2019-04-05 09:25:57 +07:00
g12a-tohdmitx.c ASoC: meson: add g12a tohdmitx control 2019-05-16 12:13:35 +01:00
Kconfig ASoC: meson: add g12a tohdmitx control 2019-05-16 12:13:35 +01:00
Makefile ASoC: meson: add g12a tohdmitx control 2019-05-16 12:13:35 +01:00