linux/sound
Takashi Iwai 00d6f33f67 ALSA: aoa: Fix I2S device accounting
[ Upstream commit f1fae475f1 ]

i2sbus_add_dev() is supposed to return the number of probed devices,
i.e. either 1 or 0.  However, i2sbus_add_dev() has one error handling
that returns -ENODEV; this will screw up the accumulation number
counted in the caller, i2sbus_probe().

Fix the return value to 0 and add the comment for better understanding
for readers.

Fixes: f3d9478b2c ("[ALSA] snd-aoa: add snd-aoa")
Link: https://lore.kernel.org/r/20221027065233.13292-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-03 23:57:53 +09:00
..
ac97 ALSA: ac97: fix PM reference leak in ac97_bus_remove() 2021-07-20 16:05:40 +02:00
aoa ALSA: aoa: Fix I2S device accounting 2022-11-03 23:57:53 +09:00
arm amba: Make the remove callback return void 2022-04-08 14:40:02 +02:00
atmel
core ALSA: dmaengine: increment buffer pointer atomically 2022-10-26 13:25:27 +02:00
drivers ALSA: aloop: Fix random zeros in capture data when using jiffies timer 2022-09-15 11:32:03 +02:00
firewire ALSA: fireworks: fix wrong return count shorter than expected by 4 bytes 2022-05-12 12:25:29 +02:00
hda ALSA: hda: intel-nhlt: Correct the handling of fmt_config flexible array 2022-09-08 11:11:36 +02:00
i2c
isa ALSA: wavefront: Proper check of get_user() error 2022-05-25 09:17:55 +02:00
mips
oss
parisc
pci ALSA: ac97: fix possible memory leak in snd_ac97_dev_register() 2022-11-03 23:57:51 +09:00
pcmcia
ppc ALSA: ppc: fix error return code in snd_pmac_probe() 2021-07-20 16:05:43 +02:00
sh
soc ASoC: qcom: lpass-cpu: Mark HDMI TX parity register as volatile 2022-11-03 23:57:51 +09:00
sparc ALSA: sparc: dbri: fix repeated word 'the' 2020-10-17 09:58:35 +02:00
spi ALSA: spi: Add check for clk_enable() 2022-04-08 14:40:08 +02:00
synth ALSA: Use del_timer_sync() before freeing timer 2022-11-03 23:57:48 +09:00
usb ALSA: usb-audio: Fix NULL dererence at error path 2022-10-26 13:25:06 +02:00
x86 ALSA: intel_hdmi: Fix reference to PCM buffer address 2022-03-08 19:09:31 +01:00
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c