linux/sound/pci/lx6464es
Dan Carpenter 5dac9f8dc2 ALSA: pci: lx6464es: fix a debug loop
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>
2023-02-01 13:14:26 +01:00
..
lx6464es.c ALSA: lx6464es: Fix the missing snd_card_free() call at probe error 2022-04-12 17:58:40 +02:00
lx6464es.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 29 2019-05-24 17:27:10 +02:00
lx_core.c ALSA: pci: lx6464es: fix a debug loop 2023-02-01 13:14:26 +01:00
lx_core.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 29 2019-05-24 17:27:10 +02:00
lx_defs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 29 2019-05-24 17:27:10 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00