summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2026-09-16 19:16:06 +0300
committerLee Jones <lee@kernel.org>2026-09-22 14:27:49 +0100
commitd229695f2162a41bfa614f175798fa56a5f1c969 (patch)
tree11b25f974001978ac4c027d38835722a3f2f87e1 /tools/lib/python
parente264a106d8fc45fd82891cb0c4f8bd9e2c48c152 (diff)
leds: flash: Prevent using uninitialized variable in flash_fault_show()
In flash_fault_show(), address of uninitialized 'fault' variable is passed to device-specific .fault_get callbacks. This is not a problem if such a callback directly assigns the value like rt4505_fault_get(), but results in an undefined behavior if callback just performs bitwise ORs like as3645a_get_fault(). So just initialize 'fault' with zero. Reported-by: sashiko-bot@kernel.org Closes: https://sashiko.dev/#/patchset/20260904054437.461706-1-dmantipov@yandex.ru?part=1 Fixes: 7aea8389a77ab ("leds: Add LED Flash class extension to the LED subsystem") Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru> Link: https://patch.msgid.link/20260916161607.90106-1-dmantipov@yandex.ru Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions