Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135556
b: refs/heads/master
c: 30842f2
h: refs/heads/master
v: v3
  • Loading branch information
Vitaly Mayatskikh authored and David S. Miller committed Mar 23, 2009
1 parent c5ee0c5 commit 9e8b72f
Show file tree
Hide file tree
Showing 2 changed files with 6 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: e072b639dc13b06b65be487633dad9bb3d2067d5
refs/heads/master: 30842f2989aacfaba3ccb39829b3417be9313dbe
6 changes: 5 additions & 1 deletion trunk/net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,8 @@ static struct sock *udp_get_next(struct seq_file *seq, struct sock *sk)
} while (sk && (!net_eq(sock_net(sk), net) || sk->sk_family != state->family));

if (!sk) {
spin_unlock_bh(&state->udp_table->hash[state->bucket].lock);
if (state->bucket < UDP_HTABLE_SIZE)
spin_unlock_bh(&state->udp_table->hash[state->bucket].lock);
return udp_get_first(seq, state->bucket + 1);
}
return sk;
Expand All @@ -1632,6 +1633,9 @@ static struct sock *udp_get_idx(struct seq_file *seq, loff_t pos)

static void *udp_seq_start(struct seq_file *seq, loff_t *pos)
{
struct udp_iter_state *state = seq->private;
state->bucket = UDP_HTABLE_SIZE;

return *pos ? udp_get_idx(seq, *pos-1) : SEQ_START_TOKEN;
}

Expand Down

0 comments on commit 9e8b72f

Please sign in to comment.