[U-Boot] Initialize SHA buffer size var in passwd_abort

Tom Rini trini at konsulko.com
Sun Jan 28 18:51:39 UTC 2018


On Fri, Jan 12, 2018 at 09:04:38AM +0100, Martin Etnestad wrote:

> The call to hash_block in passwd_abort fails with error ENOSPC on some
> systems. The reason is that the variable which specifies the size of the
> buffer to contain the computed hash does not get initialized.
> 
> This patch initializes the variable with the size of the buffer.
> 
> Signed-off-by: Martin Etnestad <martin.etnestad at appeartv.com>

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: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180128/2642fb7f/attachment.sig>


More information about the U-Boot mailing list