]> git.baikalelectronics.ru Git - uboot.git/commit
fdt_shrink_to_minimum: do not mark fdt space reserved unconditionally
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Fri, 3 May 2019 19:19:03 +0000 (21:19 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 9 May 2019 23:52:55 +0000 (19:52 -0400)
commit190777c931de35b558187f6ad3c68f3dd4585f3b
tree37061f1a53275fcc7bd025b7e930b6c2abd8906f
parentf2110203471694ee2d28e1cc847fab0fc96dfea0
fdt_shrink_to_minimum: do not mark fdt space reserved unconditionally

This function merely relocates the fdt blob, so don't let it alter
it by adding reservations that didn't exist before.

Instead, if the memory used for the fdt blob has been reserved
before calling this function, ensure the relocated memory is
marked as reserved instead.

Reported-by: Keerthy <j-keerthy@ti.com>
Reported-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
common/fdt_support.c