[U-Boot] [PATCH] cmd_fdt: save fdtaddr in hex format

Simon Glass sjg at chromium.org
Sat Jul 11 01:08:00 CEST 2015


On 10 July 2015 at 10:18, Sudeep Holla <sudeep.holla at arm.com> wrote:
>
> Commit 90fbee3e4051 ("cmd_fdt: Actually fix fdt command in sandbox")
> changed the format(from hex address to unsigned long) in which "fdtaddr"
> is saved . However do_fdt continues reads the "fdtaddr" assuming it to
> be in hex format. This may lead to fdt being either loaded or attempted
> to load at erroneous address generating fault if the address is out of
> memory.
>
> This patch changes back the format to hex while saving the "fdtaddr"
> as it was done before.
>
> Signed-off-by: Sudeep Holla <sudeep.holla at arm.com>
> Cc: Linus Walleij <linus.walleij at linaro.org>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Hua Yanghao <huayanghao at gmail.com>
> Cc: Heiko Schocher <hs at denx.de>
> ---
>  common/cmd_fdt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Reposting this time with my signoff as it turns out I can legally do so.
>

Great!

- Simon


More information about the U-Boot mailing list