Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58106
b: refs/heads/master
c: 5131a18
h: refs/heads/master
v: v3
  • Loading branch information
Zach Brown authored and Vlad Yasevich committed Jun 26, 2007
1 parent c971780 commit 50820cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 186e234358ba29a4094d0c8c0d3ea00f84d32a3e
refs/heads/master: 5131a184a3458d9ac47d9eba032cf4c4d3295afd
5 changes: 4 additions & 1 deletion trunk/net/sctp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -6123,8 +6123,11 @@ static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
* queued to the backlog. This prevents a potential race between
* backlog processing on the old socket and new-packet processing
* on the new socket.
*
* The caller has just allocated newsk so we can guarantee that other
* paths won't try to lock it and then oldsk.
*/
sctp_lock_sock(newsk);
lock_sock_nested(newsk, SINGLE_DEPTH_NESTING);
sctp_assoc_migrate(assoc, newsk);

/* If the association on the newsk is already closed before accept()
Expand Down

0 comments on commit 50820cb

Please sign in to comment.