diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2021-03-09 14:21:29 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-10 12:51:12 +0000 |
commit | 3bb4852d598f0275ed5996a059df55be7318ac2f (patch) | |
tree | 787304bfd042a05f81b6ccf98c60724785982253 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 4800fe6ea1022eb240215b1743d2541adad8efc7 (diff) |
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/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions