The error handling code does not current detect an error right away. Adjust it to return immediately. Signed-off-by: Simon Glass <sjg at chromium.org> --- Changes in v3: None Changes in v2: None lib/of_live.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) Applied to u-boot-dm, thanks!