• Rich Felker's avatar
    sh: fix memory corruption of unflattened device tree · eb6b6930
    Rich Felker authored
    unflatten_device_tree() makes use of memblock allocation, and
    therefore must be called before paging_init() migrates the memblock
    allocation data to the bootmem framework. Otherwise the record of the
    allocation for the expanded device tree will be lost, and will
    eventually be clobbered when allocated for another use.
    Signed-off-by: default avatarRich Felker <dalias@libc.org>
    eb6b6930
of-generic.c 3.85 KB