summaryrefslogtreecommitdiff
path: root/crypto/sha512_generic.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-04-16 16:59:13 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2018-04-21 00:24:02 +0800
commitfca38aeffeb10dc2282ba84720092c6224dd53a8 (patch)
tree3937f4cbee6d26af1b8b91e3b2afe7abb617bcc1 /crypto/sha512_generic.c
parent23d6bea047b81c3165a5a34871197d4024936d4c (diff)
downloadlinux-crypto-fca38aeffeb10dc2282ba84720092c6224dd53a8.tar.gz
linux-crypto-fca38aeffeb10dc2282ba84720092c6224dd53a8.zip
crypto: api - fix finding algorithm currently being tested
Commit a8e5d48808e1 ("crypto: api - Keep failed instances alive") is making allocating crypto transforms sometimes fail with ELIBBAD, when multiple processes try to access encrypted files with fscrypt for the first time since boot. The problem is that the "request larval" for the algorithm is being mistaken for an algorithm which failed its tests. Fix it by only returning ELIBBAD for "non-larval" algorithms. Also don't leak a reference to the algorithm. Fixes: a8e5d48808e1 ("crypto: api - Keep failed instances alive") Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/sha512_generic.c')
0 files changed, 0 insertions, 0 deletions