]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib/rsa: correct check after allocation in fdt_add_bignum()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 20 Aug 2020 19:11:17 +0000 (21:11 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 27 Aug 2020 15:26:58 +0000 (11:26 -0400)
commitde95930946f5de3b5f43aaf4153a334d841d4f3c
tree5e8283f2ec91b7c86a688113554827d977d61c8d
parent4431a9889c67f76e66aa99fb9ad9e10c014e268f
lib/rsa: correct check after allocation in fdt_add_bignum()

After allocating to pointer ctx we should check that pointer and not
another pointer already checked above.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/rsa/rsa-sign.c