diff options
| author | Cong Nguyen <congnt264@gmail.com> | 2026-09-15 10:45:15 +0700 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2026-09-22 13:48:42 +0100 |
| commit | 145ca6bca2cc5fd8d9c7af216df58a9c75c0e84c (patch) | |
| tree | 17dea8ba1b417a4c70881e03f4ef4bfc1ca0b753 /tools/lib/python/kdoc | |
| parent | 1b75f038e5f71ed32ce6593b5763f9776ec58a25 (diff) | |
leds: lm3692x: Fix regulator/gpio leak and wrong enabled state on last write failure
Every write in lm3692x_leds_enable() checks its return and jumps to
out: on failure -- except the last one, which falls through and sets
led->enabled = true regardless of whether it actually succeeded. Leaks
the regulator on a failing probe, and short-circuits later
brightness_set() calls without retrying.
Route it through out: like every other write here, and only set
enabled = true once it succeeds.
Fixes: 260718b3a35d ("leds: lm3692x: Disable chip on brightness 0")
Assisted-by: Claude:claude-opus-4
Signed-off-by: Cong Nguyen <congnt264@gmail.com>
Link: https://patch.msgid.link/20260915034515.4147981-1-congnt264@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
