linux-4.1-rc7/drivers/irqchip/irq-renesas-intc-irqpin.c:418: array index used before limits check ?

From: David Binderman
Date: Mon Jun 08 2015 - 07:10:43 EST


Hello there,

[linux-4.1-rc7/drivers/irqchip/irq-renesas-intc-irqpin.c:418]: (style) Array ind
ex 'k' is used before limits check.

   if (!io[k] && k < INTC_IRQPIN_REG_NR_MANDATORY) {

Suggest sanity check array index before use.

Regards

David Binderman

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/