android_kernel_google_msm/sound/soc/samsung
Charles Keepax 87fd5ce262 ASoC: samsung-i2s: Check secondary DAI exists before referencing
commit 133c2681c4 upstream.

In a couple of places the driver is missing a check to ensure there is a
secondary DAI before it de-references the pointer to it, causing a null
pointer de-reference. This patch adds a check to avoid this.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
[lizf: Backported to 3.4: drop the changes to i2s_shutdown()]
Signed-off-by: Zefan Li <lizefan@huawei.com>
2014-12-01 18:02:32 +08:00
..
ac97.c
dma.c
dma.h
goni_wm8994.c
h1940_uda1380.c
i2s-regs.h
i2s.c
i2s.h
idma.c
idma.h
jive_wm8750.c
Kconfig
littlemill.c
ln2440sbc_alc650.c
lowland.c
Makefile
neo1973_wm8753.c
pcm.c
pcm.h
regs-i2s-v2.h
rx1950_uda1380.c
s3c-i2s-v2.c
s3c-i2s-v2.h
s3c24xx-i2s.c
s3c24xx-i2s.h
s3c24xx_simtec.c
s3c24xx_simtec.h
s3c24xx_simtec_hermes.c
s3c24xx_simtec_tlv320aic23.c
s3c24xx_uda134x.c
s3c2412-i2s.c
s3c2412-i2s.h
smartq_wm8987.c
smdk2443_wm9710.c
smdk_spdif.c
smdk_wm8580.c
smdk_wm8580pcm.c
smdk_wm8994.c
smdk_wm8994pcm.c
smdk_wm9713.c
spdif.c
spdif.h
speyside.c
tobermory.c