Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111257
b: refs/heads/master
c: 6be547a
h: refs/heads/master
i:
  111255: ff790e0
v: v3
  • Loading branch information
Andi Kleen authored and David S. Miller committed Aug 28, 2008
1 parent 3a4e7c9 commit 196716d
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: 6eac56040787c3ff604fe7d48bbbb7897cd1387c
refs/heads/master: 6be547a61d6220199826070cda792297c3d15994
6 changes: 5 additions & 1 deletion trunk/net/ipv4/inet_diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -782,11 +782,15 @@ static int inet_diag_dump(struct sk_buff *skb, struct netlink_callback *cb)
struct sock *sk;
struct hlist_node *node;

num = 0;

if (hlist_empty(&head->chain) && hlist_empty(&head->twchain))
continue;

if (i > s_i)
s_num = 0;

read_lock_bh(lock);
num = 0;
sk_for_each(sk, node, &head->chain) {
struct inet_sock *inet = inet_sk(sk);

Expand Down

0 comments on commit 196716d

Please sign in to comment.