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>
This commit is contained in:
parent
4fa0150d6c
commit
cb1e619824
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ struct lmb_property {
|
|||
struct lmb_region {
|
||||
unsigned long cnt;
|
||||
unsigned long max;
|
||||
struct lmb_property region[CONFIG_LMB_MAX_REGIONS + 1];
|
||||
struct lmb_property region[CONFIG_LMB_MAX_REGIONS];
|
||||
};
|
||||
|
||||
struct lmb {
|
||||
|
|
Loading…
Reference in a new issue