diff options
author | Eric Biggers <ebiggers@google.com> | 2019-05-22 12:42:29 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-05-30 15:25:57 +0800 |
commit | a4f353ef678a3e189bba959cb57e8542ad588898 (patch) | |
tree | 22487af70f579bdbe7177c5479e45ea18ca47fc4 /crypto/ecrdsa.c | |
parent | 303312cf92a204a3fba5b0b8b67d86a410861810 (diff) | |
download | linux-crypto-a4f353ef678a3e189bba959cb57e8542ad588898.tar.gz linux-crypto-a4f353ef678a3e189bba959cb57e8542ad588898.zip |
crypto: hmac - fix memory leak in hmac_init_tfm()
When I added the sanity check of 'descsize', I missed that the child
hash tfm needs to be freed if the sanity check fails. Of course this
should never happen, hence the use of WARN_ON(), but it should be fixed.
Fixes: 299e27e01d55 ("crypto: hash - fix incorrect HASH_MAX_DESCSIZE")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ecrdsa.c')
0 files changed, 0 insertions, 0 deletions