Skip to content
Snippets Groups Projects
Commit 3c6867a1 authored by Dong Aisheng's avatar Dong Aisheng Committed by Rob Herring
Browse files

of: of_reserved_mem: only call memblock_free for normal reserved memory


For nomap case, the memory block will be removed by memblock_remove()
in early_init_dt_alloc_reserved_memory_arch(). So it's meaningless to
call memblock_free() on error path.

Cc: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
Signed-off-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
Link: https://lore.kernel.org/r/20210611131153.3731147-1-aisheng.dong@nxp.com


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 972d6a7d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment