lkml.org 
[lkml]   [2010]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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>


\
 
 \ /
  Last update: 2010-04-16 20:53    [W:0.030 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site