Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342030
b: refs/heads/master
c: 0b0fe91
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Graf authored and David S. Miller committed Dec 7, 2012
1 parent f5f3af2 commit a34c4b6
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 36f0ffa59175883bf2b01b38a60384314368aae9
refs/heads/master: 0b0fe913bf6d551642eb8892ed90be7358906379
7 changes: 6 additions & 1 deletion trunk/net/sctp/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,19 @@ static void sctp_seq_dump_local_addrs(struct seq_file *seq, struct sctp_ep_commo
primary = &peer->saddr;
}

list_for_each_entry(laddr, &epb->bind_addr.address_list, list) {
rcu_read_lock();
list_for_each_entry_rcu(laddr, &epb->bind_addr.address_list, list) {
if (!laddr->valid)
continue;

addr = &laddr->a;
af = sctp_get_af_specific(addr->sa.sa_family);
if (primary && af->cmp_addr(addr, primary)) {
seq_printf(seq, "*");
}
af->seq_dump_addr(seq, addr);
}
rcu_read_unlock();
}

/* Dump remote addresses of an association. */
Expand Down

0 comments on commit a34c4b6

Please sign in to comment.