Skip to content
Commit 53007fc1 authored by Oleksandr Andrushchenko's avatar Oleksandr Andrushchenko Committed by Tom Rini
Browse files

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: default avatarOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 23da3c68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment