From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 22 Apr 2019 09:52:47 -0400 Subject: [U-Boot] [PATCH 1/2] pci: Add boundary check for hose->regions In-Reply-To: <20190416163053.GA26165@ulmo> References: <20190315153233.2335-1-thierry.reding@gmail.com> <20190416163053.GA26165@ulmo> Message-ID: <20190422135247.GT4664@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Apr 16, 2019 at 06:30:53PM +0200, Thierry Reding wrote: > On Fri, Mar 15, 2019 at 04:32:32PM +0100, Thierry Reding wrote: > > From: Thierry Reding > > > > 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 > > --- > > drivers/pci/pci-uclass.c | 5 +++++ > > 1 file changed, 5 insertions(+) > > Hi Tom, > > have you had a chance to look at these two patches? Simon's reviewed > them and they are needed to restore PCI support on Jetson TX2 (P2771). They're on my list, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: