summaryrefslogtreecommitdiff
path: root/crypto/crc32_generic.c
diff options
context:
space:
mode:
authorNicolai Stange <nstange@suse.de>2021-11-15 15:18:08 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2021-11-26 16:16:50 +1100
commitfb8928ddff64234d6e5a1eb16caa72ffe5e2aaac (patch)
treeab3952f0cb65d142718c12409520aa701e0cd290 /crypto/crc32_generic.c
parent79354578b7641357deb0f85046a72bff5d97447c (diff)
downloadlinux-crypto-fb8928ddff64234d6e5a1eb16caa72ffe5e2aaac.tar.gz
linux-crypto-fb8928ddff64234d6e5a1eb16caa72ffe5e2aaac.zip
crypto: drbg - make drbg_prepare_hrng() handle jent instantiation errors
Now that drbg_prepare_hrng() doesn't do anything but to instantiate a jitterentropy crypto_rng instance, it looks a little odd to have the related error handling at its only caller, drbg_instantiate(). Move the handling of jitterentropy allocation failures from drbg_instantiate() close to the allocation itself in drbg_prepare_hrng(). There is no change in behaviour. Signed-off-by: Nicolai Stange <nstange@suse.de> Reviewed-by: Stephan Müller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/crc32_generic.c')
0 files changed, 0 insertions, 0 deletions