Skip to content
Snippets Groups Projects
Commit 1152a05e authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

tools: Correct error handling in fit_image_process_hash()

We should not be returning -1 as an error code. This can mask a situation
where we run out of space adding things to the FIT. By returning the correct
error in this case (-ENOSPC) it can be handled by the higher-level code.

This may fix the error reported by Tom Van Deun here:

https://www.mail-archive.com/u-boot@lists.denx.de/msg217417.html



although I am not sure as I cannot actually repeat it.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reported-by: default avatarTom Van Deun <tom.vandeun@wapice.com>
Reviewed-by: default avatarTeddy Reed <teddy.reed@gmail.com>
parent 655cc696
No related branches found
No related tags found
No related merge requests found
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