Skip to content
Snippets Groups Projects
Commit d56b86ee authored by Jean-Jacques Hiblot's avatar Jean-Jacques Hiblot Committed by Tom Rini
Browse files

fit: fixed bug in locate_dtb_in_fit()


If the dtb is the first data of the FIT, the its offset is 0x0. Change the
test to '<' instead of '<='

Signed-off-by: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 906a9dbb
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ void *locate_dtb_in_fit(const void *fit)
ret = fdt_offset(fit);
if (ret <= 0)
if (ret < 0)
return NULL;
else
return (void *)fit+size+ret;
......
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