crypto: algapi - pass instance to crypto_grab_spawn()
Currently, crypto_spawn::inst is first used temporarily to pass the instance to crypto_grab_spawn(). Then crypto_init_spawn() overwrites it with crypto_spawn::next, which shares the same union. Finally, crypto_spawn::inst is set again when the instance is registered. Make this less convoluted by just passing the instance as an argument to crypto_grab_spawn() instead. Signed-off-by:Eric Biggers <ebiggers@google.com> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>
Showing
- crypto/adiantum.c 3 additions, 3 deletionscrypto/adiantum.c
- crypto/aead.c 1 addition, 2 deletionscrypto/aead.c
- crypto/akcipher.c 1 addition, 2 deletionscrypto/akcipher.c
- crypto/algapi.c 3 additions, 3 deletionscrypto/algapi.c
- crypto/skcipher.c 1 addition, 2 deletionscrypto/skcipher.c
- include/crypto/algapi.h 2 additions, 8 deletionsinclude/crypto/algapi.h
Please register or sign in to comment