]> git.baikalelectronics.ru Git - uboot.git/commit
lmb: correct size of the regions array
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 10 Mar 2021 09:16:29 +0000 (10:16 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 22 Apr 2021 18:09:45 +0000 (14:09 -0400)
commit3fd5b2bf2ab65aaca5443f38c4097e416b814731
tree0bd3afda5a87643d564970a8d8f98c41d1a3960a
parent24bbfa435fd6ec77a2e284b097fbd0847af59100
lmb: correct size of the regions array

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 <patrick.delaunay@foss.st.com>
include/lmb.h