diff options
| author | Junjie Cao <[email protected]> | 2025-08-25 09:08:50 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2025-08-26 10:03:09 +0000 |
| commit | 810e154d90f44127239957b06ee51a55553a5815 (patch) | |
| tree | 2a9a6485b6f15a92441a15deb037d7a4ca78c0a1 /scripts/lib/kdoc/kdoc_item.py | |
| parent | Linux 6.17-rc3 (diff) | |
| download | kernel-810e154d90f44127239957b06ee51a55553a5815.tar.gz kernel-810e154d90f44127239957b06ee51a55553a5815.zip | |
gpio: timberdale: fix off-by-one in IRQ type boundary check
timbgpio_irq_type() currently accepts offset == ngpio, violating
gpiolib's [0..ngpio-1] contract. This can lead to undefined behavior
when computing '1 << offset', and it is also inconsistent with users
that iterate with for_each_set_bit(..., ngpio).
Tighten the upper bound to reject offset == ngpio. No functional change
for in-range offsets.
Signed-off-by: Junjie Cao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_item.py')
0 files changed, 0 insertions, 0 deletions
