[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100416185003.GB24707@opensource.wolfsonmicro.com>
Date: Sat, 17 Apr 2010 03:50:04 +0900
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Phil Carmody <ext-phil.2.carmody@...ia.com>
Cc: sameo@...ux.intel.com, linux-kernel@...r.kernel.org
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@...ia.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@...nsource.wolfsonmicro.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists