diff options
author | 2023-02-04 17:57:33 -0800 | |
---|---|---|
committer | 2023-02-06 13:12:35 +0000 | |
commit | 983272a2a223de59dbb4cb189aa4d02d7156d209 (patch) | |
tree | 00743917e2ffffdfc67ec47cef31f57a1d1e5dc6 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ASoC: SOF: core/ipc4/mtl: Add support for PCM delay (diff) | |
download | wireguard-linux-983272a2a223de59dbb4cb189aa4d02d7156d209.tar.xz wireguard-linux-983272a2a223de59dbb4cb189aa4d02d7156d209.zip |
ASoC: codecs: aw88395: initialize cur_scene_id to 0
cppcheck reports
sound/soc/codecs/aw88395/aw88395_lib.c:789:6: error: Uninitialized variable: cur_scene_id [uninitvar]
if (cur_scene_id == 0) {
^
Passing a garbage value to aw_dev_parse_data_by_sec_type_v1() will cause a crash
when the value is used as an array index. This check assumes cur_scene_id is
initialized to 0, so initialize it to 0.
Fixes: 4345865b003b ("ASoC: codecs: ACF bin parsing and check library file for aw88395")
Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20230205015733.1721009-1-trix@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions