]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
crypto: adiantum - fix leaking reference to hash algorithm
authorEric Biggers <ebiggers@google.com>
Mon, 10 Dec 2018 19:45:58 +0000 (11:45 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Dec 2018 10:24:59 +0000 (18:24 +0800)
commit00c9fe37a7f27a306bcaa5737f0787fe139f8aba
tree879de5aacf4fef53cf165e1ad1769eff3ced4b79
parent0ac6b8fb23c724b015d9ca70a89126e8d1563166
crypto: adiantum - fix leaking reference to hash algorithm

crypto_alg_mod_lookup() takes a reference to the hash algorithm but
crypto_init_shash_spawn() doesn't take ownership of it, hence the
reference needs to be dropped in adiantum_create().

Fixes: 059c2a4d8e16 ("crypto: adiantum - add Adiantum support")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/adiantum.c