]> git.baikalelectronics.ru Git - uboot.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)
commit3ed7d87e6f22cb5d96fcd87a67767a29f9fe69c9
tree988d57c7f39d094d22de6f64bee26128dafc2a44
parent19c098b5f6b3ed620628298ea461d009dee6bdcc
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: 39bcfe2c8671 ("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