diff options
author | Eric Biggers <ebiggers@google.com> | 2020-01-02 19:58:41 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-01-09 11:30:53 +0800 |
commit | ff67062796e97cbb009ab0ca30176abb24b9a325 (patch) | |
tree | ffbf106e80ae14214f69f904022d936e7fd4c856 /mm/early_ioremap.c | |
parent | e91e785e182103d94fc1d8b3e064edfb5145cc31 (diff) | |
download | linux-ff67062796e97cbb009ab0ca30176abb24b9a325.tar.bz2 |
crypto: algapi - make crypto_drop_spawn() a no-op on uninitialized spawns
Make crypto_drop_spawn() do nothing when the spawn hasn't been
initialized with an algorithm yet. This will allow simplifying error
handling in all the template ->create() functions, since on error they
will be able to just call their usual "free instance" function, rather
than having to handle dropping just the spawns that have been
initialized so far.
This does assume the spawn starts out zero-filled, but that's always the
case since instances are allocated with kzalloc(). And some other code
already assumes this anyway.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'mm/early_ioremap.c')
0 files changed, 0 insertions, 0 deletions