summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-02-15 16:33:13 +0000
committerMark Brown <broonie@kernel.org>2021-02-23 13:45:07 +0000
commit2d003ec15396cc8ffa2a887605c98a967de3078d (patch)
tree5d3fd493d779274a5fe315c7da856127439ac6d2 /tools/perf/scripts/python/exported-sql-viewer.py
parent2979ef760e73e2a1a34cd4da5d2c78371dfe1028 (diff)
ASoC: codecs: lpass-rx-macro: Fix uninitialized variable ec_tx
There is potential read of the uninitialized variable ec_tx if the call to snd_soc_component_read fails or returns an unrecognized w->name. To avoid this corner case, initialize ec_tx to -1 so that it is caught later when ec_tx is bounds checked. Addresses-Coverity: ("Uninitialized scalar variable") Fixes: 4f692926f562 ("ASoC: codecs: lpass-rx-macro: add dapm widgets and route") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20210215163313.84026-1-colin.king@canonical.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