Messages in this thread | | | Date | Sat, 17 Apr 2010 03:50:04 +0900 | From | Mark Brown <> | Subject | Re: [PATCH] mfd: Fix fencepost error in reg cache access check |
| |
On Fri, Apr 16, 2010 at 03:00:09PM +0300, Phil Carmody wrote: > From: Phil Carmody <ext-phil.2.carmody@nokia.com> > > 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@opensource.wolfsonmicro.com>
| |