diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2020-01-13 09:33:51 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-01-24 12:33:08 -0500 |
commit | dae188e6839aa678f1ab4518d92b7eda7277fedf (patch) | |
tree | e0422795faee6e1d9c38e01ab96262f82f15c637 /configs/helios4_defconfig | |
parent | 906e3cc552fbf24f0b2a1b7582c6f761a608de20 (diff) |
tools: ftdgrep: correct the find regions loop in do_fdtgrep
Use realloc and update the loop executed in do_fdtgrep to find all
the regions: only test count > max_region after the second pass.
This patch solve an issue if the number of region found (count)
is greater then the default value (max_region = count = 100):
the second pass is never executed, because the loop stops after
the first pass (i = 0, count > 100, max_regions = 100)
with error -1 and the error message
"Internal error with fdtgrep_find_region".
I also update the error message.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'configs/helios4_defconfig')
0 files changed, 0 insertions, 0 deletions