Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 831
b: refs/heads/master
c: c3924c7
h: refs/heads/master
i:
  829: b527838
  827: 0955939
  823: 5e69b20
  815: 6956eba
  799: f267d99
  767: 5686ca0
v: v3
  • Loading branch information
Folkert van Heusden authored and David S. Miller committed May 3, 2005
1 parent ff11a80 commit bdff3b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 0b2531bdc54e19717de5cb161d57e5ee0a7725ff
refs/heads/master: c3924c70dd3bddc28b99ccd1688bd281bad1a9be
7 changes: 5 additions & 2 deletions trunk/net/ipv6/tcp_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,12 @@ static int tcp_v6_get_port(struct sock *sk, unsigned short snum)
int rover;

spin_lock(&tcp_portalloc_lock);
rover = tcp_port_rover;
if (tcp_port_rover < low)
rover = low;
else
rover = tcp_port_rover;
do { rover++;
if ((rover < low) || (rover > high))
if (rover > high)
rover = low;
head = &tcp_bhash[tcp_bhashfn(rover)];
spin_lock(&head->lock);
Expand Down

0 comments on commit bdff3b8

Please sign in to comment.