|
@@ -1494,7 +1494,7 @@ static void sctp_close(struct sock *sk, long timeout)
|
|
|
|
|
|
pr_debug("%s: sk:%p, timeout:%ld\n", __func__, sk, timeout);
|
|
|
|
|
|
- lock_sock(sk);
|
|
|
+ lock_sock_nested(sk, SINGLE_DEPTH_NESTING);
|
|
|
sk->sk_shutdown = SHUTDOWN_MASK;
|
|
|
sk->sk_state = SCTP_SS_CLOSING;
|
|
|
|
|
@@ -1544,7 +1544,7 @@ static void sctp_close(struct sock *sk, long timeout)
|
|
|
* held and that should be grabbed before socket lock.
|
|
|
*/
|
|
|
spin_lock_bh(&net->sctp.addr_wq_lock);
|
|
|
- bh_lock_sock(sk);
|
|
|
+ bh_lock_sock_nested(sk);
|
|
|
|
|
|
/* Hold the sock, since sk_common_release() will put sock_put()
|
|
|
* and we have just a little more cleanup.
|