Skip to content
Snippets Groups Projects
Unverified Commit f1e1a4b7 authored by Caleb Connolly's avatar Caleb Connolly
Browse files

dm: core: ofnode: safely fallback in ofnode_lookup_fdt


Under some conditions it's possible to hit the null condition here like
when running with OF_LIVE and using the ofnode API before
initr_of_live() is called. There is very little null
checking for this in the FDT framework, so returning null here can
result in weird null pointer conditions.

Instead let's return the control FDT in the fallback case, this is
usually what the user was expecting.

Signed-off-by: Caleb Connolly's avatarCaleb Connolly <caleb.connolly@linaro.org>
parent 1799ba90
No related branches found
Loading
Pipeline #116550 failed with stages
in 2 minutes and 16 seconds
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