summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/cs4265.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2022-02-15 16:06:45 +0300
committerMark Brown <broonie@kernel.org>2022-02-16 19:33:48 +0300
commit9bdd10d57a8807dba0003af0325191f3cec0f11c (patch)
tree68efc5aabf5a4e17fbd9920da17d68fb0c480e51 /sound/soc/codecs/cs4265.c
parenta887f9c7a4d37a8e874ba8415a42a92a1b5139fc (diff)
downloadlinux-9bdd10d57a8807dba0003af0325191f3cec0f11c.tar.xz
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 <marex@denx.de> Cc: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20220215130645.164025-1-marex@denx.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs4265.c')
0 files changed, 0 insertions, 0 deletions