diff options
author | Eric Biggers <ebiggers@google.com> | 2020-02-25 20:59:14 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-03-06 12:28:22 +1100 |
commit | 5b69a9aaf716f6fe20a23bc19687a196e7bc634a (patch) | |
tree | b3a7ec3befb0b34ff187577719bf3c001d2add62 /crypto/algif_rng.c | |
parent | d7e7a13938300a066feff29e96c41045c74992e6 (diff) | |
download | linux-crypto-5b69a9aaf716f6fe20a23bc19687a196e7bc634a.tar.gz linux-crypto-5b69a9aaf716f6fe20a23bc19687a196e7bc634a.zip |
crypto: ccm - simplify error handling in crypto_rfc4309_create()
Simplify the error handling in crypto_rfc4309_create() by taking
advantage of crypto_grab_aead() now handling an ERR_PTR() name and by
taking advantage of crypto_drop_aead() now accepting (as a no-op) a
spawn that hasn't been grabbed yet.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/algif_rng.c')
0 files changed, 0 insertions, 0 deletions