android_kernel_google_msm/sound
Xiubo Li e5b741351f ASoC: core: fix possible ZERO_SIZE_PTR pointer dereferencing error.
commit 6596aa047b upstream.

Since we cannot make sure the 'params->num_regs' will always be none
zero here, and then if it equals to zero, the kmemdup() will return
ZERO_SIZE_PTR, which equals to ((void *)16).

So this patch fix this with just doing the zero check before calling
kmemdup().

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
[lizf: Backported to 3.4: adjust context]
Signed-off-by: Zefan Li <lizefan@huawei.com>
2014-12-01 18:02:39 +08:00
..
aoa
arm ALSA: pxa2xx: Fix unlocked snd_pcm_stop() call 2014-03-11 16:10:09 -07:00
atmel
core ALSA: pcm: fix fifo_size frame calculation 2014-12-01 18:02:36 +08:00
drivers ALSA: pcsp: Fix the order of input device unregistration 2014-04-14 06:44:31 -07:00
firewire
i2c ALSA: ak4xx-adda: info leak in ak4xxx_capture_source_info() 2014-04-14 06:44:30 -07:00
isa ALSA: msnd: Avoid duplicated driver name 2013-11-29 10:50:34 -08:00
mips
oss sound: Fix make allmodconfig on MIPS correctly 2013-08-20 08:26:27 -07:00
parisc
pci ALSA: hda - Fix COEF setups for ALC1150 codec 2014-12-01 18:02:21 +08:00
pcmcia
ppc
sh
soc ASoC: core: fix possible ZERO_SIZE_PTR pointer dereferencing error. 2014-12-01 18:02:39 +08:00
sparc
spi
synth
usb ALSA: 6fire: make buffers DMA-able (midi) 2014-04-14 06:44:30 -07:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c
sound_firmware.c