linux-stable/sound/pci
Dan Carpenter f209431be1 ALSA: pci: lx6464es: fix a debug loop
[ Upstream commit 5dac9f8dc2 ]

This loop accidentally reuses the "i" iterator for both the inside and
the outside loop.  The value of MAX_STREAM_BUFFER is 5.  I believe that
chip->rmh.stat_len is in the 2-12 range.  If the value of .stat_len is
4 or more then it will loop exactly one time, but if it's less then it
is a forever loop.

It looks like it was supposed to combined into one loop where
conditions are checked.

Fixes: 8e6320064c ("ALSA: lx_core: Remove useless #if 0 .. #endif")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/Y9jnJTis/mRFJAQp@kili
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-22 12:50:32 +01:00
..
ac97 ALSA: ac97: fix possible memory leak in snd_ac97_dev_register() 2022-11-03 23:56:55 +09:00
ali5451
asihpi ALSA: asihpi: fix missing pci_disable_device() 2023-01-18 11:41:07 +01:00
au88x0 ALSA: au88x0: use explicitly signed char 2022-11-03 23:56:53 +09:00
aw2
ca0106 ALSA: ca0106: fix error code handling 2020-09-09 19:12:32 +02:00
cs46xx ALSA: pci: delete repeated words in comments 2020-09-03 11:26:41 +02:00
cs5535audio
ctxfi ALSA: ctxfi: Fix out-of-range access 2021-12-01 09:23:28 +01:00
echoaudio ALSA: echoaudio: Fix potential Oops in snd_echo_resume() 2020-08-21 13:05:38 +02:00
emu10k1 ALSA: emu10k1: Fix out of bounds access in snd_emu10k1_pcm_channel_alloc() 2022-09-15 12:04:54 +02:00
hda ALSA: hda/via: Avoid potential array out-of-bound in add_secret_dac_path() 2023-02-22 12:50:23 +01:00
ice1712 ALSA: pci: delete repeated words in comments 2020-09-03 11:26:41 +02:00
korg1212
lola
lx6464es ALSA: pci: lx6464es: fix a debug loop 2023-02-22 12:50:32 +01:00
mixart ALSA: mixart: Fix mutex deadlock 2020-11-24 13:29:20 +01:00
nm256
oxygen ALSA: pci: delete repeated words in comments 2020-09-03 11:26:41 +02:00
pcxhr
riptide
rme9652 ALSA: rme9652: don't disable if not enabled 2021-05-19 10:08:21 +02:00
trident
vx222
ymfpci
ad1889.c
ad1889.h
ak4531_codec.c
als300.c
als4000.c
atiixp.c
atiixp_modem.c
azt3328.c
azt3328.h
bt87x.c
cmipci.c ALSA: cmipci: Restore aux vol on suspend/resume 2022-03-28 08:46:45 +02:00
cs4281.c
cs5530.c
ens1370.c
ens1371.c
es1938.c
es1968.c
fm801.c
intel8x0.c ALSA: intel8x0: Fix breakage at ac97 clock measurement 2021-07-14 16:52:59 +02:00
intel8x0m.c
Kconfig ALSA: ISA: not for M68K 2021-11-26 10:47:16 +01:00
maestro3.c
Makefile
rme32.c
rme96.c
sis7019.c
sis7019.h
sonicvibes.c
via82xx.c
via82xx_modem.c