From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 16 Jul 2016 09:50:44 -0400 Subject: [U-Boot] [U-Boot, 12/14] tools: Correct error handling in fit_image_process_hash() In-Reply-To: <1467560446-10628-13-git-send-email-sjg@chromium.org> References: <1467560446-10628-13-git-send-email-sjg@chromium.org> Message-ID: <20160716135044.GS7260@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Jul 03, 2016 at 09:40:44AM -0600, Simon Glass wrote: > 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 at lists.denx.de/msg217417.html > > although I am not sure as I cannot actually repeat it. > > Signed-off-by: Simon Glass > Reported-by: Tom Van Deun > Reviewed-by: Teddy Reed Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: