summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorManuel Fombuena <fombuena@outlook.com>2026-07-02 23:35:58 +0100
committerLee Jones <lee@kernel.org>2026-07-09 10:52:23 +0100
commitcf197514bdfd3877f42b5dce1efd40b7b686547e (patch)
treef9ecb521dad50c3ac6b1b288204178e91c570e76 /tools/perf/scripts/python
parent0767335233a8cbab00bbe260a4e4bd380c7677fd (diff)
downloadlinux-cf197514bdfd3877f42b5dce1efd40b7b686547e.tar.gz
linux-cf197514bdfd3877f42b5dce1efd40b7b686547e.zip
leds: st1202: Validate LED reg property against channel count
The reg property from the device tree is used directly as an array index into chip->leds[] without bounds checking. A value >= ST1202_MAX_LEDS would cause an out-of-bounds write during probe. Fixes: 259230378c65 ("leds: Add LED1202 I2C driver") Signed-off-by: Manuel Fombuena <fombuena@outlook.com> Assisted-by: Claude:claude-sonnet-4-6 Link: https://patch.msgid.link/GV1PR08MB849718B43321DB7E5A05D17BC5F52@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