summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorManuel Fombuena <fombuena@outlook.com>2026-07-02 23:28:20 +0100
committerLee Jones <lee@kernel.org>2026-07-09 10:51:41 +0100
commitfd2529ba8fb44cd4b56f1069363b949644b42cec (patch)
tree37eda714f62a63e2d091b6dd3d52289e39a9b077 /tools/perf/scripts/python
parent9c019a8cb95d820e0bd03e75cfbad2c5b13941b7 (diff)
downloadlinux-fd2529ba8fb44cd4b56f1069363b949644b42cec.tar.gz
linux-fd2529ba8fb44cd4b56f1069363b949644b42cec.zip
leds: st1202: Validate pattern input before stopping the sequence
Input validation for pattern duration is performed inside the write loop, after the pattern sequence has already been stopped. If validation fails mid-loop the chip is left with the sequence stopped and partially written pattern data, with no recovery. Move all input validation before the mutex and before any hardware interaction, so an invalid input leaves the chip state unchanged. Signed-off-by: Manuel Fombuena <fombuena@outlook.com> Assisted-by: Claude:claude-sonnet-4-6 Link: https://patch.msgid.link/GV1PR08MB84975929B6ED7CDFBCEB7D76C5F52@GV1PR08MB8497.eurprd08.prod.outlook.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions