Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

cmd_fdt.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Sudeep Holla's avatar
      8a133bb5
      cmd_fdt: save fdtaddr in hex format · 8a133bb5
      Sudeep Holla authored
      
      Commit 90fbee3e ("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: default avatarSudeep Holla <sudeep.holla@arm.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Hua Yanghao <huayanghao@gmail.com>
      Cc: Heiko Schocher <hs@denx.de>
      Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      8a133bb5
      History
      cmd_fdt: save fdtaddr in hex format
      Sudeep Holla authored
      
      Commit 90fbee3e ("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: default avatarSudeep Holla <sudeep.holla@arm.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Hua Yanghao <huayanghao@gmail.com>
      Cc: Heiko Schocher <hs@denx.de>
      Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>