fsnotify: don't BUG in fsnotify_destroy_mark()
[firefly-linux-kernel-4.4.55.git] / crypto / crypto_user.c
index 0605a2bbba75e17e67e59f602f1d12c453404031..3ba6ef508869d104db2657423e451c3922db5f45 100644 (file)
@@ -298,7 +298,7 @@ static int crypto_del_alg(struct sk_buff *skb, struct nlmsghdr *nlh,
        if (atomic_read(&alg->cra_refcnt) != 1)
                return -EBUSY;
 
-       return crypto_unregister_alg(alg);
+       return crypto_unregister_instance(alg);
 }
 
 static int crypto_add_alg(struct sk_buff *skb, struct nlmsghdr *nlh,