]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb2a56127e3bab82d69dbce34da65afc511bb8865
tree8746423ed47cf756795084b1df85c69c34232a9f
parent95ba3792b81d6d222b9abe3980abf9dafbe7913f
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