efi_loader: only reserve memory if fdt node enabled
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 24 Mar 2020 06:37:52 +0000 (07:37 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 28 Mar 2020 09:45:03 +0000 (10:45 +0100)
commit4ef2b0d5512857c1af1110a0b23744c00a585cb2
tree9da1fd0a0404e1c6d3cce79ffe4efe7e6a9ba0bc
parent6c0ef35cdc3164fda9c7ddd15db58793b1bd3263
efi_loader: only reserve memory if fdt node enabled

Sub-nodes of /reserved-memory may be disabled. In this case we should not
reserve memory in the memory map.

Reported-by: Patrick DELAUNAY <patrick.delaunay@st.com>
Fixes: fef907b2e440 ("efi_loader: create reservations after
ft_board_setup")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
cmd/bootefi.c