]> git.baikalelectronics.ru Git - uboot.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)
commit8e11732993c8c18fe97c2058c7d9c68237a048cd
tree5e8283f2ec91b7c86a688113554827d977d61c8d
parenta52033932d20dafc1c515ee036d0dd45c6282eb8
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