lkml.org 
[lkml]   [2022]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/9] ASoC: codecs: qcom fix validation failures
Date
Thanks for pointing out to mixer kselftest and VALIDATION Kconfig.

This patchset addresses some of the issues in Qualcomm codecs that are
discovered with recent mixer kselftest and validations added to ASoC.

Mostly these are under
1. accessing integer value type for enum controls, which is clearly an array out of bounds access.
2. Fix incorrect ranges.
3. Fix return values for put functions.

Changes since v1:
- removed tlv min max patches as "9bdd10d57a ("ASoC: ops:
Shift tested values in snd_soc_put_volsw() by +min")" fixed the issue in core.
- added checks in wcd934x_rx_hph_mode_put before returning

thanks,
srini

Srinivas Kandagatla (9):
ASoC: codecs: rx-macro: fix accessing compander for aux
ASoC: codecs: rx-macro: fix accessing array out of bounds for enum
type
ASoC: codecs: tx-macro: fix accessing array out of bounds for enum
type
ASoC: codecs: va-macro: fix accessing array out of bounds for enum
type
ASoC: codecs: wsa-macro: fix accessing array out of bounds for enum
type
ASoC: codecs: wc938x: fix accessing array out of bounds for enum type
ASoC: codecs: wcd938x: fix kcontrol max values
ASoC: codecs: wcd934x: fix kcontrol max values
ASoC: codecs: wcd934x: fix return value of wcd934x_rx_hph_mode_put

sound/soc/codecs/lpass-rx-macro.c | 12 ++++++++----
sound/soc/codecs/lpass-tx-macro.c | 8 ++++----
sound/soc/codecs/lpass-va-macro.c | 4 ++--
sound/soc/codecs/lpass-wsa-macro.c | 10 +++++-----
sound/soc/codecs/wcd934x.c | 11 +++++++----
sound/soc/codecs/wcd938x.c | 10 +++++-----
6 files changed, 31 insertions(+), 24 deletions(-)

--
2.21.0

\
 
 \ /
  Last update: 2022-02-22 19:32    [W:0.058 / U:0.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site