Skip to content
Commit eb6b6930 authored by Rich Felker's avatar Rich Felker
Browse files

sh: fix memory corruption of unflattened device tree



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>
parent 9b7e30ab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment