X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=net%2Fipv4%2Ftcp_diag.c;h=c3328fa488375d10a09ab16b6e0738645bb55a9c;hb=0e87506fcc734647c7b2497eee4eb81e785c857a;hp=67277800d0c13538fe0695952ce6cc375d54966c;hpb=60236fdd08b2169045a3bbfc5ffe1576e6c3c17b;p=safe%2Fjmp%2Flinux-2.6 diff --git a/net/ipv4/tcp_diag.c b/net/ipv4/tcp_diag.c index 6727780..c3328fa 100644 --- a/net/ipv4/tcp_diag.c +++ b/net/ipv4/tcp_diag.c @@ -529,9 +529,9 @@ static int tcpdiag_dump_reqs(struct sk_buff *skb, struct sock *sk, entry.family = sk->sk_family; - read_lock_bh(&tp->syn_wait_lock); + read_lock_bh(&tp->accept_queue.syn_wait_lock); - lopt = tp->listen_opt; + lopt = tp->accept_queue.listen_opt; if (!lopt || !lopt->qlen) goto out; @@ -588,7 +588,7 @@ static int tcpdiag_dump_reqs(struct sk_buff *skb, struct sock *sk, } out: - read_unlock_bh(&tp->syn_wait_lock); + read_unlock_bh(&tp->accept_queue.syn_wait_lock); return err; }