diff options
Diffstat (limited to 'crypto/aead.c')
-rw-r--r-- | crypto/aead.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/aead.c b/crypto/aead.c index 547491e35c63..222271070b49 100644 --- a/crypto/aead.c +++ b/crypto/aead.c | |||
@@ -448,7 +448,8 @@ static int crypto_nivaead_default(struct crypto_alg *alg, u32 type, u32 mask) | |||
448 | if (IS_ERR(inst)) | 448 | if (IS_ERR(inst)) |
449 | goto put_tmpl; | 449 | goto put_tmpl; |
450 | 450 | ||
451 | if ((err = crypto_register_instance(tmpl, inst))) { | 451 | err = crypto_register_instance(tmpl, inst); |
452 | if (err) { | ||
452 | tmpl->free(inst); | 453 | tmpl->free(inst); |
453 | goto put_tmpl; | 454 | goto put_tmpl; |
454 | } | 455 | } |