ASoC: soc-jack: calling snd_soc_jack_report causes a null pointer access
authormnlife <mnlife@126.com>
Fri, 11 Aug 2023 14:25:11 +0000 (22:25 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 14 Aug 2023 21:10:35 +0000 (22:10 +0100)
commit62cc82e6486b9b66b340bbf5fb38b0171fb56a7f
tree42f300e1642bdc39f40b66d0cdb69a6fb52cdbd9
parent273bc8bf2227108ed2851bea71786a026e34ecbb
ASoC: soc-jack: calling snd_soc_jack_report causes a null pointer access

When snd_soc_card_jack_new is not called or the call fails,
calling this function causes a null pointer access

Signed-off-by: mnlife <mnlife@126.com>
Link: https://lore.kernel.org/r/20230811142511.6570-1-mnlife@126.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-jack.c