diff options
author | Colin Ian King <[email protected]> | 2021-02-15 16:33:13 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2021-03-10 12:48:28 +0000 |
commit | 0c0a5883783540a56e6a5dbf5868f045dbeaa888 (patch) | |
tree | 00d836416718987eb1d46966d99d075a03605a56 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0d2b6e398975bcc6a29f1d466229a312dde71b53 (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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions