]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: rt5514: Add the sanity check for the driver_data in the resume function
authoroder_chiou@realtek.com <oder_chiou@realtek.com>
Mon, 20 Nov 2017 10:23:19 +0000 (18:23 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 27 Nov 2017 16:44:57 +0000 (16:44 +0000)
commit346cccf88319344c9f513bd85df6ae2258e8a8ea
tree83c135f1f20567402fff59a2dc7abd302abb4a4d
parent254beff97b4714bac4ec8add5a6888c1adc1ad8f
ASoC: rt5514: Add the sanity check for the driver_data in the resume function

If the rt5514 spi driver is loaded, but the snd_soc_platform_driver is not
loaded by the correct DAI settings, the NULL pointer will be gotten by
snd_soc_platform_get_drvdata in the resume function.

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5514-spi.c