summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorRichard Fitzgerald <rf@opensource.cirrus.com>2026-11-04 13:33:22 +0000
committerMark Brown <broonie@kernel.org>2026-11-04 19:33:03 +0000
commit4d07af76ca41cc1a03240cd3b5f44dc428856214 (patch)
tree7418cb96980fbe755e4ad3b828042b039b5c3b7f /tools/lib/python
parent39d31f76ad1b12f1b5e6ef4c15f89e6b3c3f603a (diff)
ASoC: wm_adsp: Prevent negative string length in wm_adsp_control_add()
Check that avail does not become < 1 in wm_adsp_control_add(). This prevents overflows during subsequent operations. The main aim is to trap a negative value in avail, but a zero length would mean that the control ends up without a name, so 1 is the smallest valid value. Fixes: b7ede5af62ab6 ("ASoC: wm_adsp: Take prefix into account in control name length") Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://patch.msgid.link/20261104133322.1085061-1-rf@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions