Re: [PATCH] crypto: adiantum - fix leaking reference to hash algorithm

2018-12-13 Thread Herbert Xu
On Mon, Dec 10, 2018 at 11:45:58AM -0800, Eric Biggers wrote: > From: Eric Biggers > > 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: 059c2a4d

[PATCH] crypto: adiantum - fix leaking reference to hash algorithm

2018-12-10 Thread Eric Biggers
From: Eric Biggers 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