[U-Boot] [PATCH] fdt: Check if the FDT address is configured

Jerry Van Baren gvb.uboot at gmail.com
Sat Sep 15 15:41:18 CEST 2012


On 09/05/2012 02:34 AM, Marek Vasut wrote:
> In case the "fdt addr" command wasn't ran yet and any other "fdt"
> subcommand was issued, the system crashed due to NULL pointer being
> used.
> 
> This is caused by "fdt addr" command setting up a pointer to the
> FDT memory location. Prior issuing "fdt addr", the pointer is NULL
> so calling any other subcommands crashed the u-boot.
> 
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Simon Glass <sjg at chromium.org>

Applied and sent a pull request to Tom Rini.

Thanks,
gvb



More information about the U-Boot mailing list