Skip to content

leds: Assorted bug fixes across core, flash, trigger, and drivers

Lee Jones linux-leds lkml stable 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/21leds: lm3532: Propagate error from devm_regulator_get()drivers/leds/leds-lm3532.c+1 -10 replies
2/21leds: lm3532: Use dev_err_probe() when lm3532_parse_node() failsdrivers/leds/leds-lm3532.c+3 -50 replies
3/21leds: trigger: netdev: Hold RTNL lock across hw_control_get_device() in activatedrivers/leds/trigger/ledtrig-netdev.c+6 -20 replies
4/21leds: aw2013: Guard LED array index in aw2013_probe_dt()drivers/leds/leds-aw2013.c+3 -01 reply
5/21leds: pca955x: Take a reference on the child firmware nodedrivers/leds/leds-pca955x.c+16 -30 replies
6/21leds: lp50xx: Guard sub-LED count in lp50xx_probe_dt()drivers/leds/leds-lp50xx.c+8 -00 replies
7/21leds: trigger: netdev: Serialise work cancellation and state updatesdrivers/leds/trigger/ledtrig-netdev.c+25 -100 replies
8/21leds: sgm3140: Replace powerdown timer with delayed workdrivers/leds/flash/leds-sgm3140.c+14 -120 replies
9/21leds: sgm3140: Cancel powerdown work via devres after LED unregistrationdrivers/leds/flash/leds-sgm3140.c+5 -30 replies
10/21leds: class: Initialise trigger_lock before exposing sysfs attributesdrivers/leds/led-class.c+3 -30 replies
11/21leds: class: Unlock led_access before unregistering device on errordrivers/leds/led-class.c+2 -10 replies
12/21leds: aat1290: Retain child device_node reference for device lifetimedrivers/leds/flash/leds-aat1290.c+7 -20 replies
13/21leds: aat1290: Prevent out-of-bounds read in aat1290_brightness_to_intensity()drivers/leds/flash/leds-aat1290.c+3 -00 replies
14/21leds: flash: Avoid divide-by-zero in led_clamp_align()drivers/leds/led-class-flash.c+5 -04 replies
15/21leds: lm3532: Validate LED string indices in lm3532_parse_node()drivers/leds/leds-lm3532.c+5 -00 replies
16/21leds: lm3532: Clamp full-scale current to minimum bounddrivers/leds/leds-lm3532.c+10 -80 replies
17/21leds: aat1290: Avoid leaking devres pinctrl handles on strobe source changesdrivers/leds/flash/leds-aat1290.c+4 -20 replies
18/21leds: aw2013: Unlock chip mutex before registering LEDsdrivers/leds/leds-aw2013.c+32 -221 reply
19/21leds: is31fl32xx: Clamp channel current limit in is31fl3293_reset()drivers/leds/leds-is31fl32xx.c+2 -10 replies
20/21leds: flash: Terminate sysfs_groups array with NULLdrivers/leds/led-class-flash.c+2 -00 replies
21/21leds: lm3692x: Use devm_mutex_init() to avoid premature mutex destructiondrivers/leds/leds-lm3692x.c+4 -20 replies

Reviews trailers per patch

3 of 21 patches have a Reviewed-by or Acked-by.

PatchJacek AnaszewskiNikita Travkin
1/21
2/21
3/21
4/21R-b
5/21
6/21
7/21
8/21
9/21
10/21
11/21
12/21
13/21
14/21R-b
15/21
16/21
17/21
18/21R-b
19/21
20/21
21/21

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/21] leds: Assorted bug fixes across core, flash, trigger, and drivers

These issues were reported by Sashiko.

This series addresses a collection of bugs across the LEDs subsystem, including locking and concurrency fixes, device-tree node reference leaks, out-of-bounds array accesses, divide-by-zero and current-limit clamping issues, and devres lifecycle ordering fixes.

Cc Andrew Lunn <[email protected]>
Cc Ben Whitten <[email protected]>
Cc Bryan Wu <[email protected]>
Cc Christian Hitz <[email protected]>
Cc Christian Marangi <[email protected]>
Cc Daniel Mack <[email protected]>
Cc Dan Murphy <[email protected]>
Cc David Rivshin <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Dmitry Antipov <[email protected]>
Cc Eddie James <[email protected]>
Cc Florian Fainelli <[email protected]>
Cc Jacek Anaszewski <[email protected]>
Cc John Lenz <[email protected]>
Cc Krzysztof Kozlowski <[email protected]>
Cc Kyungmin Park <[email protected]>
Cc Luca Weiss <[email protected]>
Cc Luis Henriques <[email protected]>
Cc Nate Case <[email protected]>
Cc Nikita Travkin <[email protected]>
Cc Oliver Jowett <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Richard Purdie <[email protected]>

Lee Jones (21):
leds: lm3532: Propagate error from devm_regulator_get()
leds: lm3532: Use dev_err_probe() when lm3532_parse_node() fails
leds: trigger: netdev: Hold RTNL lock across hw_control_get_device()
in activate
leds: aw2013: Guard LED array index in aw2013_probe_dt()
leds: pca955x: Take a reference on the child firmware node
leds: lp50xx: Guard sub-LED count in lp50xx_probe_dt()
leds: trigger: netdev: Serialise work cancellation and state updates
leds: sgm3140: Replace powerdown timer with delayed work
leds: sgm3140: Cancel powerdown work via devres after LED
unregistration
leds: class: Initialise trigger_lock before exposing sysfs attributes
leds: class: Unlock led_access before unregistering device on error
leds: aat1290: Retain child device_node reference for device lifetime
leds: aat1290: Prevent out-of-bounds read in

    aat1290_brightness_to_intensity()

leds: flash: Avoid divide-by-zero in led_clamp_align()
leds: lm3532: Validate LED string indices in lm3532_parse_node()
leds: lm3532: Clamp full-scale current to minimum bound
leds: aat1290: Avoid leaking devres pinctrl handles on strobe source
changes
leds: aw2013: Unlock chip mutex before registering LEDs
leds: is31fl32xx: Clamp channel current limit in is31fl3293_reset()
leds: flash: Terminate sysfs_groups array with NULL
leds: lm3692x: Use devm_mutex_init() to avoid premature mutex
destruction

 drivers/leds/flash/leds-aat1290.c     | 18 +++++++--
 drivers/leds/flash/leds-sgm3140.c     | 30 ++++++++------
 drivers/leds/led-class-flash.c        |  7 ++++
 drivers/leds/led-class.c              |  9 +++--
 drivers/leds/leds-aw2013.c            | 57 ++++++++++++++++-----------
 drivers/leds/leds-is31fl32xx.c        |  3 +-
 drivers/leds/leds-lm3532.c            | 33 +++++++++-------
 drivers/leds/leds-lm3692x.c           |  6 ++-
 drivers/leds/leds-lp50xx.c            |  8 ++++
 drivers/leds/leds-pca955x.c           | 19 +++++++--
 drivers/leds/trigger/ledtrig-netdev.c | 43 ++++++++++++++------
 11 files changed, 158 insertions(+), 75 deletions(-)
Signature · 1 line
2.56.0.218.g1ec904b173-goog