diff options
author | 2021-03-09 14:21:29 +0000 | |
---|---|---|
committer | 2021-03-10 12:51:12 +0000 | |
commit | 3bb4852d598f0275ed5996a059df55be7318ac2f (patch) | |
tree | 787304bfd042a05f81b6ccf98c60724785982253 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ASoC: qcom: sdm845: Fix array out of range on rx slim channels (diff) | |
download | wireguard-linux-3bb4852d598f0275ed5996a059df55be7318ac2f.tar.xz wireguard-linux-3bb4852d598f0275ed5996a059df55be7318ac2f.zip |
ASoC: codecs: wcd934x: add a sanity check in set channel map
set channel map can be passed with a channel maps, however if
the number of channels that are passed are more than the actual
supported channels then we would be accessing array out of bounds.
So add a sanity check to validate these numbers!
Fixes: a61f3b4f476e ("ASoC: wcd934x: add support to wcd9340/wcd9341 codec")
Reported-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210309142129.14182-4-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