MIPS: Octeon: Off by one in octeon_irq_gpio_map()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Jul 2016 10:14:29 +0000 (13:14 +0300)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 21 Jul 2016 09:20:10 +0000 (11:20 +0200)
commit008d0cf1ec69ec6d2c08f2d23aff2b67cbe5d2af
treefd92b4b71d08d93d25a3388c53b50390bf398fce
parentb4e76f7e6d3200462c6354a6ad4ae167459e61f8
MIPS: Octeon: Off by one in octeon_irq_gpio_map()

It should be >= ARRAY_SIZE() instead of > ARRAY_SIZE().

Fixes: 64b139f97c01 ('MIPS: OCTEON: irq: add CIB and other fixes')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: David Daney <david.daney@cavium.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: linux-mips@linux-mips.org
Cc: kernel-janitors@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/13813/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/octeon-irq.c