Files
linux-stable-mirror/sound/soc/codecs
Srinivas Kandagatla 3bb4852d59 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: a61f3b4f47 ("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>
2021-03-10 12:51:12 +00:00
..
2021-03-10 12:49:36 +00:00
2021-03-10 12:49:37 +00:00
2021-02-04 18:45:19 +00:00
2020-12-02 15:18:22 +00:00
2021-01-05 14:34:18 +00:00
2020-12-09 17:00:33 +00:00
2020-10-26 15:27:13 +01:00
2020-10-26 15:27:13 +01:00
2020-10-02 21:05:29 +01:00