android_kernel_oneplus_msm8998/sound
Xiaojun Sang 0d5d870989 ASoC: qdsp6v2: prevent null pointer dereference for _vol_cmds
In case of memory allocation failure, _vol_cmd_cnt is not reset.
In _volume_cmds_free, null pointer dereference would happen for
_vol_cmds[i].
To prevent it, reset _vol_cmd_cnt when memory allocation fails.

CRs-Fixed: 1089598
Change-Id: Icb998549cdb999c6db2fd52aef505f200e630da5
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2016-11-16 22:21:20 +08:00
..
aoa
arm
atmel
core Merge "ASoC: add 352800Hz into the pcm known rates" 2016-11-07 22:28:58 -08:00
drivers ALSA: dummy: Fix a use-after-free at closing 2016-07-27 09:47:37 -07:00
firewire
hda
i2c
isa
mips
oss
parisc
pci Revert "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4" 2016-08-26 14:34:05 -07:00
pcmcia
ppc
sh
soc ASoC: qdsp6v2: prevent null pointer dereference for _vol_cmds 2016-11-16 22:21:20 +08:00
sparc
spi
synth
usb sound: usb: Add support to handle QMI client disconnect 2016-11-03 16:54:19 -07:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c
sound_firmware.c