diff options
| -rw-r--r-- | drivers/irqchip/irq-crossbar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-crossbar.c b/drivers/irqchip/irq-crossbar.c index 85c2985d8bcb..bbbaf5de65d2 100644 --- a/drivers/irqchip/irq-crossbar.c +++ b/drivers/irqchip/irq-crossbar.c | |||
| @@ -220,7 +220,7 @@ static int __init crossbar_of_init(struct device_node *node) | |||
| 220 | of_property_read_u32_index(node, | 220 | of_property_read_u32_index(node, |
| 221 | "ti,irqs-reserved", | 221 | "ti,irqs-reserved", |
| 222 | i, &entry); | 222 | i, &entry); |
| 223 | if (entry > max) { | 223 | if (entry >= max) { |
| 224 | pr_err("Invalid reserved entry\n"); | 224 | pr_err("Invalid reserved entry\n"); |
| 225 | ret = -EINVAL; | 225 | ret = -EINVAL; |
| 226 | goto err_irq_map; | 226 | goto err_irq_map; |
| @@ -238,7 +238,7 @@ static int __init crossbar_of_init(struct device_node *node) | |||
| 238 | of_property_read_u32_index(node, | 238 | of_property_read_u32_index(node, |
| 239 | "ti,irqs-skip", | 239 | "ti,irqs-skip", |
| 240 | i, &entry); | 240 | i, &entry); |
| 241 | if (entry > max) { | 241 | if (entry >= max) { |
| 242 | pr_err("Invalid skip entry\n"); | 242 | pr_err("Invalid skip entry\n"); |
| 243 | ret = -EINVAL; | 243 | ret = -EINVAL; |
| 244 | goto err_irq_map; | 244 | goto err_irq_map; |
