]> git.baikalelectronics.ru Git - uboot.git/commit
common/board_f: Respect original FDT size while relocating
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Fri, 19 Jun 2020 08:22:18 +0000 (11:22 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 7 Jul 2020 13:45:07 +0000 (09:45 -0400)
commitabb8d4c7e277cd16c457788f2cfa57105ac501c8
treeed50b506eb38e727a905aed6aebc7098c0dd5242
parent7a9bd25b94f275f430d0057eaec66f54f90d20b1
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>
common/board_f.c