Re: linux-4.1-rc7/drivers/irqchip/irq-renesas-intc-irqpin.c:418: array index used before limits check ?
From: Thomas Gleixner
Date: Mon Jun 08 2015 - 09:11:00 EST
On Mon, 8 Jun 2015, David Binderman wrote:
> 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.
Which version of gcc is being stupid here?
Thanks,
tglx