aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-pow.c
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2019-05-22 19:42:29 +0000
committerHerbert Xu <[email protected]>2019-05-30 07:25:57 +0000
commit7829a0c1cb9c80debfb4fdb49b4d90019f2ea1ac (patch)
treef15fd92cbf013eb8e31c422457593b674e46aae1 /lib/mpi/mpi-pow.c
parentcrypto: jitterentropy - change back to module_init() (diff)
downloadkernel-7829a0c1cb9c80debfb4fdb49b4d90019f2ea1ac.tar.gz
kernel-7829a0c1cb9c80debfb4fdb49b4d90019f2ea1ac.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: e1354400b25d ("crypto: hash - fix incorrect HASH_MAX_DESCSIZE") Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions