commit | 86dde17c29ce3ad2a95ce1c0441bb298efcd8efe | [log] [tgz] |
---|---|---|
author | Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> | Fri Jun 19 11:22:18 2020 +0300 |
committer | Tom Rini <trini@konsulko.com> | Tue Jul 07 09:45:07 2020 -0400 |
tree | ed50b506eb38e727a905aed6aebc7098c0dd5242 | |
parent | 8728b30159498e5d405a237f120fc2e0dbda9689 [diff] |
common/board_f: Respect original FDT size while relocating While relocating FDT we reserve some memory for the new FDT and set the size of the FDT with that respect. But FDT may be placed at the end of the RAM leading to memory access beyond it. Fix this by copying exact FDT size bytes, not the reserved size. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> Reviewed-by: Simon Glass <sjg@chromium.org>