diff options
author | Oreoluwa Babatunde <quic_obabatun@quicinc.com> | 2024-02-10 03:29:30 +0300 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2024-03-10 11:55:46 +0300 |
commit | 7b432bf376c9c198a7ff48f1ed14a14c0ffbe1fe (patch) | |
tree | fe139302761c5c1b320fda195e2ca00c0772dac1 /drivers/crypto | |
parent | b401b621758e46812da61fa58a67c3fd8d91de0d (diff) | |
download | linux-7b432bf376c9c198a7ff48f1ed14a14c0ffbe1fe.tar.xz |
openrisc: Call setup_memory() earlier in the init sequence
The unflatten_and_copy_device_tree() function contains a call to
memblock_alloc(). This means that memblock is allocating memory before
any of the reserved memory regions are set aside in the setup_memory()
function which calls early_init_fdt_scan_reserved_mem(). Therefore,
there is a possibility for memblock to allocate from any of the
reserved memory regions.
Hence, move the call to setup_memory() to be earlier in the init
sequence so that the reserved memory regions are set aside before any
allocations are done using memblock.
Signed-off-by: Oreoluwa Babatunde <quic_obabatun@quicinc.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'drivers/crypto')
0 files changed, 0 insertions, 0 deletions