Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90454
b: refs/heads/master
c: 6f191ef
h: refs/heads/master
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Mar 29, 2008
1 parent 31caf11 commit b1aea91
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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: a0f55e0e833009c6a4eeb2626b807e3c21b128c8
refs/heads/master: 6f191efe48af62dd5f8917dd21d187f896cd6c81
2 changes: 1 addition & 1 deletion trunk/include/net/udp.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ struct udp_seq_afinfo {
};

struct udp_iter_state {
struct net *net;
struct seq_net_private p;
sa_family_t family;
struct hlist_head *hashtable;
int bucket;
Expand Down
8 changes: 4 additions & 4 deletions trunk/net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ static struct sock *udp_get_first(struct seq_file *seq)
{
struct sock *sk;
struct udp_iter_state *state = seq->private;
struct net *net = state->net;
struct net *net = seq_file_net(seq);

for (state->bucket = 0; state->bucket < UDP_HTABLE_SIZE; ++state->bucket) {
struct hlist_node *node;
Expand All @@ -1522,7 +1522,7 @@ static struct sock *udp_get_first(struct seq_file *seq)
static struct sock *udp_get_next(struct seq_file *seq, struct sock *sk)
{
struct udp_iter_state *state = seq->private;
struct net *net = state->net;
struct net *net = seq_file_net(seq);

do {
sk = sk_next(sk);
Expand Down Expand Up @@ -1595,7 +1595,7 @@ static int udp_seq_open(struct inode *inode, struct file *file)
s->seq_ops.next = udp_seq_next;
s->seq_ops.show = afinfo->seq_show;
s->seq_ops.stop = udp_seq_stop;
s->net = net;
s->p.net = net;

rc = seq_open(file, &s->seq_ops);
if (rc)
Expand All @@ -1617,7 +1617,7 @@ static int udp_seq_release(struct inode *inode, struct file *file)
struct seq_file *seq = file->private_data;
struct udp_iter_state *s = seq->private;

put_net(s->net);
put_net(s->p.net);
seq_release_private(inode, file);
return 0;
}
Expand Down

0 comments on commit b1aea91

Please sign in to comment.