diff options
author | Eric Biggers <ebiggers@google.com> | 2020-01-03 04:58:42 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-01-09 04:30:53 +0100 |
commit | ca94e9374a7d86e0594ed824b437656ca83d47b4 (patch) | |
tree | 11905f8a231550caf192036f02c5b565a051ef89 /ipc | |
parent | crypto: algapi - make crypto_drop_spawn() a no-op on uninitialized spawns (diff) | |
download | linux-ca94e9374a7d86e0594ed824b437656ca83d47b4.tar.xz linux-ca94e9374a7d86e0594ed824b437656ca83d47b4.zip |
crypto: algapi - make crypto_grab_spawn() handle an ERR_PTR() name
To allow further simplifying template ->create() functions, make
crypto_grab_spawn() handle an ERR_PTR() name by passing back the error.
For most templates, this will allow the result of crypto_attr_alg_name()
to be passed directly to crypto_grab_*(), rather than first having to
assign it to a variable [where it can then potentially be misused, as it
was in the rfc7539 template prior to commit 5e27f38f1f3f ("crypto:
chacha20poly1305 - set cra_name correctly")] and check it for error.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions