]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - crypto/af_alg.c
Merge tag 'riscv-for-linus-5.6-mw0' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / crypto / af_alg.c
index 0dceaabc6321115d736135276614579a7c1bf5f7..3d8e53010cda7205eb4611f2cc04d6510f23c6bc 100644 (file)
@@ -134,11 +134,13 @@ void af_alg_release_parent(struct sock *sk)
        sk = ask->parent;
        ask = alg_sk(sk);
 
-       lock_sock(sk);
+       local_bh_disable();
+       bh_lock_sock(sk);
        ask->nokey_refcnt -= nokey;
        if (!last)
                last = !--ask->refcnt;
-       release_sock(sk);
+       bh_unlock_sock(sk);
+       local_bh_enable();
 
        if (last)
                sock_put(sk);