Merge remote-tracking branch 'ftrace/for-next'
[deliverable/linux.git] / arch / mips / cavium-octeon / octeon-irq.c
index 6ab014ca23d0e499858f3576eeba674351343502..5a9b87b7993e49d3fd880816ad2dad0421ac82a6 100644 (file)
@@ -1260,7 +1260,7 @@ static int octeon_irq_gpio_map(struct irq_domain *d,
 
        line = (hw + gpiod->base_hwirq) >> 6;
        bit = (hw + gpiod->base_hwirq) & 63;
-       if (line > ARRAY_SIZE(octeon_irq_ciu_to_irq) ||
+       if (line >= ARRAY_SIZE(octeon_irq_ciu_to_irq) ||
                octeon_irq_ciu_to_irq[line][bit] != 0)
                return -EINVAL;
 
This page took 0.024063 seconds and 5 git commands to generate.