X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=crypto%2Fcrypto_user_base.c;h=3fa20f12989f7ef2765a2a158a34eac455d4b9f8;hb=b0fb29382d822a6cd6f5d8d441471f0072cd3133;hp=b785c476de67b367894eb099f1ba8cda6a351001;hpb=c95baf12f5077419db01313ab61c2aac007d40cd;p=linux-2.6-microblaze.git diff --git a/crypto/crypto_user_base.c b/crypto/crypto_user_base.c index b785c476de67..3fa20f12989f 100644 --- a/crypto/crypto_user_base.c +++ b/crypto/crypto_user_base.c @@ -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);