diff options
author | Eric Biggers <ebiggers@google.com> | 2019-05-22 22:42:29 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-05-30 10:25:57 +0300 |
commit | 7829a0c1cb9c80debfb4fdb49b4d90019f2ea1ac (patch) | |
tree | f15fd92cbf013eb8e31c422457593b674e46aae1 /Documentation/infiniband | |
parent | 9c5b34c2f7eb01976a5aa29ccdb786a634e3d1e0 (diff) | |
download | linux-7829a0c1cb9c80debfb4fdb49b4d90019f2ea1ac.tar.xz |
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: e1354400b25d ("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 'Documentation/infiniband')
0 files changed, 0 insertions, 0 deletions