Message ID | 20191205054505.wulhkajz64lwwffc@gondor.apana.org.au |
---|---|
State | Accepted |
Commit | 37f96694cf73ba116993a9d2d99ad6a75fa7fdb0 |
Headers | show |
Series |
|
Related | show |
diff --git a/crypto/af_alg.c b/crypto/af_alg.c index 0dceaabc6321..3d8e53010cda 100644 --- a/crypto/af_alg.c +++ b/crypto/af_alg.c @@ -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);