]> git.dujemihanovic.xyz Git - u-boot.git/commit
optee: fix copy of optee reserved-memory node
authorEtienne Carriere <etienne.carriere@linaro.org>
Fri, 5 Jun 2020 07:22:11 +0000 (09:22 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 15 Jun 2020 15:23:40 +0000 (11:23 -0400)
commit05f0c746069fc950243c108ac90bc1a221c903c5
tree988d57c7f39d094d22de6f64bee26128dafc2a44
parent07672c478e3a6aa0ac2ddb5b05a181b1025fd759
optee: fix copy of optee reserved-memory node

Fix the loop that parses FDT for a reserved memory node named "optee".

Before this change, if at least one subnode was found in the
reserved-memory node, the function endlessly looped since instruction
continue returned back in the loop without updating variable subnode.
This change fixes the issue by using a for loop.

Fixes: 6ccb05eae01b ("image: fdt: copy possible optee nodes to a loaded devicetree")
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
lib/optee/optee.c