summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/nau8822.c
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2019-06-10 14:53:44 +0200
committerMark Brown <broonie@kernel.org>2019-06-10 15:39:26 +0100
commit960f428ca0a04a59e74639571126245a3efc4bcf (patch)
tree818c084d09d81506e69bd7b45e69487bf81691d0 /sound/soc/codecs/nau8822.c
parent6c0215f5d9f2a1fa5cab2ca320a41d9f19cfa80c (diff)
downloadlwn-960f428ca0a04a59e74639571126245a3efc4bcf.tar.gz
lwn-960f428ca0a04a59e74639571126245a3efc4bcf.zip
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: c84836d7f650 ("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>
Diffstat (limited to 'sound/soc/codecs/nau8822.c')
0 files changed, 0 insertions, 0 deletions