diff options
author | Dan Carpenter <error27@gmail.com> | 2023-01-31 13:02:13 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-02-01 15:14:26 +0300 |
commit | 5dac9f8dc25fefd9d928b98f6477ff3daefd73e3 (patch) | |
tree | 678f3869820dc2b19c024607666af5d1f749d727 /tools/perf/scripts/python/task-analyzer.py | |
parent | c7a806d9ce6757ff56078674916e53bd859f242d (diff) | |
download | linux-5dac9f8dc25fefd9d928b98f6477ff3daefd73e3.tar.xz |
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: 8e6320064c33 ("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>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions