summaryrefslogtreecommitdiff
path: root/components/rust/examples
diff options
context:
space:
mode:
authorOld-Ding <[email protected]>2026-07-06 11:07:07 +0800
committerRbb666 <[email protected]>2026-07-08 14:03:16 +0800
commit3eac0a8a17dd425b0696b0155adfdda2b78af1d9 (patch)
treeb5754d8d1abceb1caa1998478cc3940c2e6ff7c0 /components/rust/examples
parent9e2ab35e173afe07785f3f2fb1a2fdad54cd47a6 (diff)
drivers: pic: Fix PIRQ lookup upper bound
rt_pic_linear_irq() stores irq_nr as a count and assigns pic->pirqs to the first entry in that range. rt_pic_find_pirq() therefore must treat the upper bound as exclusive. The inclusive check could return pic->pirqs[irq_nr] when irq equals irq_start + irq_nr, which is one entry past the allocated range. Generated-by: OpenAI Codex Signed-off-by: Old-Ding <[email protected]>
Diffstat (limited to 'components/rust/examples')
0 files changed, 0 insertions, 0 deletions