linux/drivers/leds/rgb
Greg Kroah-Hartman d45963a93c leds: qcom-lpg: Check for array overflow when selecting the high resolution
When selecting the high resolution values from the array, FIELD_GET() is
used to pull from a 3 bit register, yet the array being indexed has only
5 values in it.  Odds are the hardware is sane, but just to be safe,
properly check before just overflowing and reading random data and then
setting up chip values based on that.

Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/2026021934-nearby-playroom-036b@gregkh
Signed-off-by: Lee Jones <lee@kernel.org>
2026-03-10 09:23:00 +00:00
..
Kconfig leds: Add basic support for TI/National Semiconductor LP5812 LED Driver 2026-02-04 09:23:08 +00:00
leds-group-multicolor.c leds: rgb: leds-group-multicolor: Correct the typo 'acccess' 2024-10-09 10:37:20 +01:00
leds-ktd202x.c leds: Use fwnode_for_each_child_node() instead 2025-10-21 10:46:16 +01:00
leds-lp5812.c leds: Add basic support for TI/National Semiconductor LP5812 LED Driver 2026-02-04 09:23:08 +00:00
leds-lp5812.h leds: Add basic support for TI/National Semiconductor LP5812 LED Driver 2026-02-04 09:23:08 +00:00
leds-mt6370-rgb.c leds: rgb: leds-mt6370-rgb: Improve definition of some struct linear_range 2025-05-14 09:25:08 +01:00
leds-ncp5623.c leds: Use fwnode_for_each_child_node() instead 2025-10-21 10:46:16 +01:00
leds-pwm-multicolor.c leds: pwm-multicolor: Use fwnode_get_child_node_count() 2025-04-10 10:12:20 +01:00
leds-qcom-lpg.c leds: qcom-lpg: Check for array overflow when selecting the high resolution 2026-03-10 09:23:00 +00:00
Makefile leds: Add basic support for TI/National Semiconductor LP5812 LED Driver 2026-02-04 09:23:08 +00:00