aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/prom_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/prom_parse.c')
-rw-r--r--arch/powerpc/kernel/prom_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/prom_parse.c b/arch/powerpc/kernel/prom_parse.c
index cdcd5d665468..59f69d34cb67 100644
--- a/arch/powerpc/kernel/prom_parse.c
+++ b/arch/powerpc/kernel/prom_parse.c
@@ -885,7 +885,7 @@ int of_irq_map_one(struct device_node *device, int index, struct of_irq *out_irq
885 intsize = *tmp; 885 intsize = *tmp;
886 886
887 /* Check index */ 887 /* Check index */
888 if (index * intsize >= intlen) 888 if ((index + 1) * intsize > intlen)
889 return -EINVAL; 889 return -EINVAL;
890 890
891 /* Get new specifier and map it */ 891 /* Get new specifier and map it */