android_kernel_xiaomi_sm8350/sound/soc
Daniel Mack e3509ff0fb ASoC: fix NULL pointer dereference in soc_suspend()
In case the initalization of an soc_device failed, there is no codec
associated with it. soc_suspend() will still dereference the pointer
and cause an Ooops when entering the sleep mode.

This happens on our board with a multi-target kernel image when booted
on a machine without audio circuits.

This patch makes the code bail out very early in this special case.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2009-06-04 13:24:08 +01:00
..
atmel ASoC: correct print specifiers for unsigneds 2009-05-28 10:20:26 +01:00
au1x ALSA: Add missing SNDRV_PCM_INFO_BATCH flag to some drivers 2009-04-28 15:06:44 +02:00
blackfin ASoC: Blackfin: document how anomaly 05000250 is handled 2009-06-03 11:31:42 +01:00
codecs ASoC: Fix build error in twl4030.c 2009-06-04 10:01:11 +02:00
davinci ASoC: DaVinci EVM board support buildfixes 2009-05-15 08:59:07 +01:00
fsl ASoC: Modify mpc5200 AC97 driver to use V9 of spin_event_timeout() 2009-05-27 21:10:37 +01:00
omap ASoC: SDP4030: Use the twl4030_setup_data for headset pop-removal 2009-05-22 10:23:22 +01:00
pxa ASoC: correct print specifiers for unsigneds 2009-05-28 10:20:26 +01:00
s3c24xx ASoC: correct print specifiers for unsigneds 2009-05-28 10:20:26 +01:00
s6000 ASoC: correct s6000 I2S clock polarity 2009-04-06 11:18:39 +01:00
sh ASoC: correct print specifiers for unsigneds 2009-05-28 10:20:26 +01:00
txx9 ASoC: Add TXx9 AC link controller driver (v3) 2009-05-19 19:54:28 +01:00
Kconfig ASoC: Add TXx9 AC link controller driver (v3) 2009-05-19 19:54:28 +01:00
Makefile ASoC: Add TXx9 AC link controller driver (v3) 2009-05-19 19:54:28 +01:00
soc-core.c ASoC: fix NULL pointer dereference in soc_suspend() 2009-06-04 13:24:08 +01:00
soc-dapm.c ASoC: Add debug trace for bias level transitions 2009-05-18 15:53:16 +01:00
soc-jack.c ASoC: Staticise workqueue function for GPIO jack detection 2009-03-06 13:37:19 +00:00