Skip to content

Commit 1c99e3e

Browse files
committed
Merge tag 'gpio-fixes-for-v6.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux
Pull gpio fixes from Bartosz Golaszewski: - fix an off-by-one bug in interrupt handling in gpio-timberdale - update MAINTAINERS * tag 'gpio-fixes-for-v6.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: MAINTAINERS: Change Altera-PIO driver maintainer gpio: timberdale: fix off-by-one in IRQ type boundary check
2 parents c8bc81a + 6fe31c8 commit 1c99e3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ F: Documentation/devicetree/bindings/dma/altr,msgdma.yaml
931931
F: drivers/dma/altera-msgdma.c
932932

933933
ALTERA PIO DRIVER
934-
M: Mun Yew Tham <mun.yew.tham@intel.com>
934+
M: Adrian Ng <adrianhoyin.ng@altera.com>
935935
L: linux-gpio@vger.kernel.org
936936
S: Maintained
937937
F: drivers/gpio/gpio-altera.c

drivers/gpio/gpio-timberdale.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static int timbgpio_irq_type(struct irq_data *d, unsigned trigger)
137137
u32 ver;
138138
int ret = 0;
139139

140-
if (offset < 0 || offset > tgpio->gpio.ngpio)
140+
if (offset < 0 || offset >= tgpio->gpio.ngpio)
141141
return -EINVAL;
142142

143143
ver = ioread32(tgpio->membase + TGPIO_VER);

0 commit comments

Comments
 (0)