On Fri, Dec 06, 2019 at 02:38:36PM +0800, Herbert Xu wrote: > diff --git a/crypto/algapi.c b/crypto/algapi.c > index 9ecb4a57b342..6869feb31c99 100644 > --- a/crypto/algapi.c > +++ b/crypto/algapi.c > @@ -662,7 +662,6 @@ int crypto_grab_spawn(struct crypto_spawn *spawn, const char *name, > return PTR_ERR(alg); > > err = crypto_init_spawn(spawn, alg, spawn->inst, mask); > - crypto_mod_put(alg); > return err; > } > EXPORT_SYMBOL_GPL(crypto_grab_spawn); No need for 'err' anymore. This should just do 'return crypto_init_spawn(...)' - Eric