Skip to content

drivers: leds: Fix LP503X bank mode LED bounds#19317

Merged
jerpelea merged 1 commit into
apache:masterfrom
Old-Ding:codex/lp503x-bank-mode-led-bounds
Jul 6, 2026
Merged

drivers: leds: Fix LP503X bank mode LED bounds#19317
jerpelea merged 1 commit into
apache:masterfrom
Old-Ding:codex/lp503x-bank-mode-led-bounds

Conversation

@Old-Ding

@Old-Ding Old-Ding commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • validate LP503X bank-mode LED indexes before writing the led_mode array
  • return -EINVAL for out-of-range RGB LED indexes

Testing

  • git diff --check origin/master..HEAD

checkpatch.sh could not complete in this Windows environment because tools/nxstyle and make were unavailable.

@github-actions github-actions Bot added Area: Drivers Drivers issues Size: XS The size of the change in this PR is very small labels Jul 5, 2026
@Old-Ding Old-Ding force-pushed the codex/lp503x-bank-mode-led-bounds branch from 33a18e0 to 7507f10 Compare July 5, 2026 19:08
@Old-Ding Old-Ding changed the title drivers/leds: Fix LP503X bank mode LED bounds drivers: leds: Fix LP503X bank mode LED bounds Jul 5, 2026
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

PWMIOC_ENABLE_LED_BANK_MODE uses the provided LED number to index the LP503X led_mode array. Reject values outside the RGB LED range before writing that array.

Generated-by: OpenAI Codex
Signed-off-by: aineoae86-sys <ai.neo.ae86@gmail.com>
@Old-Ding Old-Ding force-pushed the codex/lp503x-bank-mode-led-bounds branch from 7507f10 to 1d74c66 Compare July 5, 2026 19:26
@jerpelea jerpelea merged commit 75b3c8e into apache:master Jul 6, 2026
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Drivers Drivers issues Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants