Re: [PATCH] intel_pmic_gpio: fix off-by-one value range checking

From: Alan Cox
Date: Wed Oct 13 2010 - 06:03:43 EST


On Fri, 08 Oct 2010 17:54:31 +0800
Axel Lin <axel.lin@xxxxxxxxx> wrote:

> In pmic_irq_type(), we use gpio as array index for trigger,
> thus the valid value range for gpio should be 0 .. NUM_GPIO - 1.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>

Agreed - thanks for spotting this.

Alan
--
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/