ASoC: ops: Validate input values in snd_soc_put_volsw_range()
authorMark Brown <broonie@kernel.org>
Sat, 23 Apr 2022 13:12:39 +0000 (14:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 May 2022 07:42:49 +0000 (09:42 +0200)
commitb7accf6ca663afd7f56d71867ab3bc50a86c20ce
treea6206864102226703c54efdcff442526d3f5d65a
parent32e864e276949ca03ef964ce24628a433ad27e3d
ASoC: ops: Validate input values in snd_soc_put_volsw_range()

[ Upstream commit aa22125c57f9e577f0a667e4fa07fc3fa8ca1e60 ]

Check that values written via snd_soc_put_volsw_range() are
within the range advertised by the control, ensuring that we
don't write out of spec values to the hardware.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220423131239.3375261-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/soc-ops.c