diff options
| author | Marek Vasut <[email protected]> | 2022-02-15 13:06:45 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2022-02-16 16:33:48 +0000 |
| commit | 9bdd10d57a8807dba0003af0325191f3cec0f11c (patch) | |
| tree | 68efc5aabf5a4e17fbd9920da17d68fb0c480e51 /tools/perf/scripts/python/stat-cpi.py | |
| parent | ASoC: wm_adsp: Correct control read size when parsing compressed buffer (diff) | |
| download | kernel-9bdd10d57a8807dba0003af0325191f3cec0f11c.tar.gz kernel-9bdd10d57a8807dba0003af0325191f3cec0f11c.zip | |
ASoC: ops: Shift tested values in snd_soc_put_volsw() by +min
While the $val/$val2 values passed in from userspace are always >= 0
integers, the limits of the control can be signed integers and the $min
can be non-zero and less than zero. To correctly validate $val/$val2
against platform_max, add the $min offset to val first.
Fixes: 817f7c9335ec0 ("ASoC: ops: Reject out of bounds values in snd_soc_put_volsw()")
Signed-off-by: Marek Vasut <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions
