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

2019-04-22 Thread Tom Rini
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 c

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

2019-04-16 Thread Thierry Reding
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 overflowi

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

2019-03-22 Thread Simon Glass
On Fri, 15 Mar 2019 at 23:32, 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

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

2019-03-15 Thread Thierry Reding
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