crypto: drbg - always try to free Jitter RNG instance
authorStephan Müller <smueller@chronox.de>
Sun, 7 Jun 2020 13:20:26 +0000 (15:20 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 15 Jun 2020 07:38:54 +0000 (17:38 +1000)
commit819966c06b759022e9932f328284314d9272b9f3
tree90ddd360f92ed37ae23f52f4bb9fb6d0f16764d9
parent1f5b07f5dd1748a6f9363fb1a76d599c74af8231
crypto: drbg - always try to free Jitter RNG instance

The Jitter RNG is unconditionally allocated as a seed source follwoing
the patch 97f2650e5040. Thus, the instance must always be deallocated.

Reported-by: syzbot+2e635807decef724a1fa@syzkaller.appspotmail.com
Fixes: 97f2650e5040 ("crypto: drbg - always seeded with SP800-90B ...")
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c