Re: [PATCH v2 5/8] lmb: correct size of the regions array

2021-04-23 Thread Tom Rini
On Wed, Mar 10, 2021 at 10:16:29AM +0100, Patrick Delaunay wrote: > As in lmb_region, cnt < max and in the lmb library > use region[i] only with i in 0...cnt, this region array size > can be reduced by 1 element without overflow. > > This patch allows to reduce the struct lmb size. > > Signed-of

[PATCH v2 5/8] lmb: correct size of the regions array

2021-03-10 Thread Patrick Delaunay
As in lmb_region, cnt < max and in the lmb library use region[i] only with i in 0...cnt, this region array size can be reduced by 1 element without overflow. This patch allows to reduce the struct lmb size. Signed-off-by: Patrick Delaunay --- Changes in v2: - new in V2: reduce size impact by co