Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74691
b: refs/heads/master
c: f26f7c4
h: refs/heads/master
i:
  74689: d5d9503
  74687: 0a9dda6
v: v3
  • Loading branch information
Vlad Yasevich authored and David S. Miller committed Dec 7, 2007
1 parent 77fb1d4 commit f273786
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 56c99d0415e8b778c200f115b198c126243ec351
refs/heads/master: f26f7c480555812ca7c4037e0a50fa54afe2cb4a
6 changes: 6 additions & 0 deletions trunk/net/sctp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -6325,6 +6325,7 @@ static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
struct sctp_endpoint *newep = newsp->ep;
struct sk_buff *skb, *tmp;
struct sctp_ulpevent *event;
struct sctp_bind_hashbucket *head;
int flags = 0;

/* Migrate socket buffer sizes and all the socket level options to the
Expand All @@ -6342,10 +6343,15 @@ static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
newsp->hmac = NULL;

/* Hook this new socket in to the bind_hash list. */
head = &sctp_port_hashtable[sctp_phashfn(inet_sk(oldsk)->num)];
sctp_local_bh_disable();
sctp_spin_lock(&head->lock);
pp = sctp_sk(oldsk)->bind_hash;
sk_add_bind_node(newsk, &pp->owner);
sctp_sk(newsk)->bind_hash = pp;
inet_sk(newsk)->num = inet_sk(oldsk)->num;
sctp_spin_unlock(&head->lock);
sctp_local_bh_enable();

/* Copy the bind_addr list from the original endpoint to the new
* endpoint so that we can handle restarts properly
Expand Down

0 comments on commit f273786

Please sign in to comment.