]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ctr - simplify error handling in crypto_rfc3686_create()
authorEric Biggers <ebiggers@google.com>
Wed, 26 Feb 2020 04:59:16 +0000 (20:59 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Mar 2020 01:28:22 +0000 (12:28 +1100)
commit11f71a5fd3c236353478fc8a2cc33767190f71fc
treec11c2a5a09d222dd546ef1df1ee2a84b0dbde0e6
parent5c3a5840b0522ae754b5a96caf30959cc08e389f
crypto: ctr - simplify error handling in crypto_rfc3686_create()

Simplify the error handling in crypto_rfc3686_create() by taking
advantage of crypto_grab_skcipher() now handling an ERR_PTR() name and
by taking advantage of crypto_drop_skcipher() 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>
crypto/ctr.c