diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2022-02-22 18:32:09 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-02-23 02:04:06 +0000 |
commit | cc587b7c8fbbe128f6bd0dad025a0caea5e6d164 (patch) | |
tree | fe204f24d9f30f2dc9767e3cbd20e52eb8794b82 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0ea5eff7c6063a8f124188424f8e4c6727f35051 (diff) |
ASoC: codecs: wc938x: fix accessing array out of bounds for enum type
Accessing enums using integer would result in array out of bounds access
on platforms like aarch64 where sizeof(long) is 8 compared to enum size
which is 4 bytes.
Fix this by using enumerated items instead of integers.
Fixes: e8ba1e05bdc0 ("ASoC: codecs: wcd938x: add basic controls")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220222183212.11580-7-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions