Re: [PATCH] mfd: Fix fencepost error in reg cache access check

From: Mark Brown
Date: Fri Apr 16 2010 - 14:50:13 EST


On Fri, Apr 16, 2010 at 03:00:09PM +0300, Phil Carmody wrote:
> From: Phil Carmody <ext-phil.2.carmody@xxxxxxxxx>
>
> Accessing num_reg elements in the interval [reg .. reg+num_regs)
> is permitted if (reg+numregs <= array size), so barf when that
> excluded upper bound is > array size. The prior -1 would give
> access to one too many elements.

Acked-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
--
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/