diff options
| author | Simon Glass <[email protected]> | 2016-07-03 09:40:44 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2016-07-14 18:22:37 -0400 |
| commit | 1152a05ee6593bf3036337cd18edd355589ea3a8 (patch) | |
| tree | 49b12a9b92c0df2cdc2711bb41ffbba471331c9f /include/linux/linux_string.h | |
| parent | 655cc69655f058e0354d5db4179c92d2ac0081ba (diff) | |
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/[email protected]/msg217417.html
although I am not sure as I cannot actually repeat it.
Signed-off-by: Simon Glass <[email protected]>
Reported-by: Tom Van Deun <[email protected]>
Reviewed-by: Teddy Reed <[email protected]>
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions
