diff options
author | Geoffrey D. Bennett <g@b4.vu> | 2023-12-20 04:07:52 +1030 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-12-29 15:39:27 +0100 |
commit | 04f8f053252b86c7583895c962d66747ecdc61b7 (patch) | |
tree | 99cafacf32c14887bccc69b126d1bf04c53d6cd9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 50603a67daef161c78c814580d57f7f0be57167e (diff) |
ALSA: scarlett2: Add clamp() in scarlett2_mixer_ctl_put()
Ensure the value passed to scarlett2_mixer_ctl_put() is between 0 and
SCARLETT2_MIXER_MAX_VALUE so we don't attempt to access outside
scarlett2_mixer_values[].
Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Fixes: 9e4d5c1be21f ("ALSA: usb-audio: Scarlett Gen 2 mixer interface")
Link: https://lore.kernel.org/r/3b19fb3da641b587749b85fe1daa1b4e696c0c1b.1703001053.git.g@b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions