ALSA: vmaster: Propagate slave error
Takashi Iwai authored
[ Upstream commit 2e2c177c

 ]

In slave_update() of vmaster code ignores the error from the slave
get() callback and copies the values.  It's not only about the missing
error code but also that this may potentially lead to a leak of
uninitialized variables when the slave get() don't clear them.

This patch fixes slave_update() not to copy the potentially
uninitialized values when an error is returned from the slave get()
callback, and to propagate the error value properly.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
a5f46bbe
Name Last commit Last update
..
aoa ALSA: Use dma_zalloc_coherent
arm ASoC: fix broken pxa SoC support
atmel dmaengine: dw: split dma-dw.h to platform and private parts
core ALSA: vmaster: Propagate slave error
drivers ALSA: aloop: Add missing cable lock to ctl API callbacks
firewire ALSA: fireworks: accessing to user space outside spinlock
i2c ALSA: ak411x: Fix stall in work callback
isa ALSA: msnd: Optimize / harden DSP and MIDI loops
mips ALSA: au1x00: Use resource_size instead of computation
oss sound/oss: fix deadlock in sequencer_ioctl(SNDCTL_SEQ_OUTOFBAND)
parisc ALSA: parisc: Convert to snd_card_new() with a device pointer
pci ALSA: hda - Fix headset microphone detection for ASUS N551 and N751
pcmcia ALSA: vx: Fix possible transfer overflow
ppc ALSA: ppc/awacs: shut up maybe-uninitialized warning
sh ALSA: sh: Convert to snd_card_new() with a device pointer
soc ASoC: au1x: Fix timeout tests in au1xac97c_ac97_read()
sparc ALSA: Use dma_zalloc_coherent
spi ALSA: spi: Convert to snd_card_new() with a device pointer
synth ALSA: synth: Fix conflicting OSS device registration on AWE32
usb ALSA: usb: mixer: volume quirk for CM102-A+/102S+
Kconfig sound: remove reference to feature-removal-schedule.txt
Makefile ALSA: add LaCie FireWire Speakers/Griffin FireWave Surround driver
ac97_bus.c sound: Fixed line limit issue in sound/ac97_bus.c
last.c ALSA: Remove the last mention of SNDRV_MAIN_OBJECT_FILE
sound_core.c consolidate the reassignments of ->f_op in ->open() instances
sound_firmware.c sound_firmware: don't bother with filp_close()