crypto: cryptd - simplify error handling in cryptd_create_*()
authorEric Biggers <ebiggers@google.com>
Wed, 26 Feb 2020 04:59:15 +0000 (20:59 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Mar 2020 01:28:22 +0000 (12:28 +1100)
commitb8c0d74a70273cea5724073370fb8ffec9783d20
tree8746423ed47cf756795084b1df85c69c34232a9f
parent64d66793b76cd3db39137cf9fc7ebe9c2010931d
crypto: cryptd - simplify error handling in cryptd_create_*()

Simplify the error handling in the various cryptd_create_*() functions
by taking advantage of crypto_grab_*() now handling an ERR_PTR() name
and by taking advantage of crypto_drop_*() 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/cryptd.c