[U-Boot] [U-Boot, 1/2] pci: Add boundary check for hose->regions

Tom Rini trini at konsulko.com
Wed Apr 24 13:27:30 UTC 2019


On Fri, Mar 15, 2019 at 04:32:32PM +0100, Thierry Reding wrote:

> From: Thierry Reding <treding at nvidia.com>
> 
> Make sure that we don't overflow the hose->regions array, otherwise we
> would end up overwriting the hose->region_count field and cause mayhem
> to ensue. Also print an error message when we'd be overflowing because
> it indicates that there aren't enough regions available and the number
> needs to be increased.
> 
> Signed-off-by: Thierry Reding <treding at nvidia.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190424/a49fef0e/attachment.sig>


More information about the U-Boot mailing list