Re: [v2,2/5] mtd: spi-nor: fix iteration over smpt array

From: Boris Brezillon
Date: Thu Nov 15 2018 - 08:25:30 EST


On Fri, 2018-11-09 at 16:56:50 UTC, wrote:
> Iterate over smpt array using its starting address and length
> instead of the blind iterations that used data found in the array.
>
> This prevents possible memory accesses outside of the smpt array
> boundaries in case software, or manufacturers, misrepresent smpt
> array fields.
>
> Fixes: b038e8e3be72 ("mtd: spi-nor: parse SFDP Sector Map Parameter Table")
> Suggested-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxx>
> Signed-off-by: Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx>

Applied to http://git.infradead.org/linux-mtd.git mtd/fixes, thanks.

Boris