Merge tag 'x86_cache_for_v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / crypto / crypto_user_base.c
index b785c47..3fa20f1 100644 (file)
@@ -323,7 +323,8 @@ static int crypto_del_alg(struct sk_buff *skb, struct nlmsghdr *nlh,
        if (refcount_read(&alg->cra_refcnt) > 2)
                goto drop_alg;
 
-       err = crypto_unregister_instance((struct crypto_instance *)alg);
+       crypto_unregister_instance((struct crypto_instance *)alg);
+       err = 0;
 
 drop_alg:
        crypto_mod_put(alg);