commit | 252e7c3a24fefdf88dfa3fff87e8dc4d0c7aa9cc | [log] [tgz] |
---|---|---|
author | Pali Rohár <pali@kernel.org> | Wed Jan 12 18:20:42 2022 +0100 |
committer | Stefan Roese <sr@denx.de> | Fri Jan 14 11:39:16 2022 +0100 |
tree | ce3460bd3dc00f7457d273869b5a54c06c3ed302 | |
parent | 0aca27ea185188a50292dd5bcec07fef020d10e6 [diff] |
tools: kwbimage: Check the return value of image_headersz_v1() Function image_headersz_v1() may return zero on fatal errors. In this case the function already printed an error message. Check the return value of image_headersz_v1() in kwbimage_generate(), and exit on zero value with EXIT_FAILURE. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>