diff options
| author | Mark Brown <broonie@kernel.org> | 2025-04-15 14:31:51 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-15 16:31:30 +0200 |
| commit | c96e16dfbfc54e9752b1fc780400348e0926d215 (patch) | |
| tree | 9b6772516a6717ad89fcda0be5aac9e87c099b2a /tools/perf/scripts/python/libxed.py | |
| parent | c215f0b5b858f59ddf0e5dde012099739f10d05d (diff) | |
| download | linux-c96e16dfbfc54e9752b1fc780400348e0926d215.tar.gz linux-c96e16dfbfc54e9752b1fc780400348e0926d215.zip | |
staging: bcm2835-audio: Validate values written to controls
The bcm2835-audio driver makes no effort to validate the values it accepts
from userspace, causing it to accept invalid values:
# # PCM Playback Switch.0 Invalid boolean value 2
# not ok 5 write_invalid.Headphones.1
# # PCM Playback Volume.0 value -10240 less than minimum -10239
# # PCM Playback Volume.0 value 401 more than maximum 400
# not ok 12 write_invalid.Headphones.0
Add validation.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20250415-staging-bcm2835-alsa-limit-v1-1-4ed816e9c0fc@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions
