]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - crypto/crypto_user_base.c
Merge tag 'riscv-for-linus-5.6-mw0' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / crypto / crypto_user_base.c
index b785c476de67b367894eb099f1ba8cda6a351001..3fa20f12989f7ef2765a2a158a34eac455d4b9f8 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);