diff options
author | 2025-08-25 17:08:50 +0800 | |
---|---|---|
committer | 2025-08-26 12:03:09 +0200 | |
commit | 810e154d90f44127239957b06ee51a55553a5815 (patch) | |
tree | 2a9a6485b6f15a92441a15deb037d7a4ca78c0a1 /tools/perf/scripts/python | |
parent | Linux 6.17-rc3 (diff) | |
download | wireguard-linux-810e154d90f44127239957b06ee51a55553a5815.tar.xz wireguard-linux-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 <junjie.cao@intel.com>
Link: https://lore.kernel.org/r/20250825090850.127163-1-junjie.cao@intel.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions