Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121665
b: refs/heads/master
c: c37ccc0
h: refs/heads/master
i:
  121663: 78ca330
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 2, 2008
1 parent 60f0a97 commit db63c98
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 7e3a42a12c4b9d99bfe81cb929cadf0e08a37c49
refs/heads/master: c37ccc0d4e2a4ee52f1a40cff1be0049f2104bba
5 changes: 5 additions & 0 deletions trunk/net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ int udp_lib_get_port(struct sock *sk, unsigned short snum,
inet_sk(sk)->num = snum;
sk->sk_hash = snum;
if (sk_unhashed(sk)) {
/*
* We need that previous write to sk->sk_hash committed
* before write to sk->next done in following add_node() variant
*/
smp_wmb();
sk_add_node_rcu(sk, &hslot->head);
sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1);
}
Expand Down

0 comments on commit db63c98

Please sign in to comment.