From: Tom Rini Date: Tue, 7 Jul 2020 12:55:31 -0400 Subject: [PATCH] common/board_f: Respect original FDT size while relocating In-Reply-To: <20200619082218.656-1-andr2000@gmail.com> References: <20200619082218.656-1-andr2000@gmail.com> Message-ID: <20200707165531.GR1306@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jun 19, 2020 at 11:22:18AM +0300, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > 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 > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: