aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/inet_diag.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/inet_diag.c')
-rw-r--r--net/ipv4/inet_diag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/inet_diag.c b/net/ipv4/inet_diag.c
index 998a78f169f..588a7796e3e 100644
--- a/net/ipv4/inet_diag.c
+++ b/net/ipv4/inet_diag.c
@@ -720,13 +720,13 @@ static int inet_diag_dump(struct sk_buff *skb, struct netlink_callback *cb)
720 720
721 for (i = s_i; i < INET_LHTABLE_SIZE; i++) { 721 for (i = s_i; i < INET_LHTABLE_SIZE; i++) {
722 struct sock *sk; 722 struct sock *sk;
723 struct hlist_node *node; 723 struct hlist_nulls_node *node;
724 struct inet_listen_hashbucket *ilb; 724 struct inet_listen_hashbucket *ilb;
725 725
726 num = 0; 726 num = 0;
727 ilb = &hashinfo->listening_hash[i]; 727 ilb = &hashinfo->listening_hash[i];
728 spin_lock_bh(&ilb->lock); 728 spin_lock_bh(&ilb->lock);
729 sk_for_each(sk, node, &ilb->head) { 729 sk_nulls_for_each(sk, node, &ilb->head) {
730 struct inet_sock *inet = inet_sk(sk); 730 struct inet_sock *inet = inet_sk(sk);
731 731
732 if (num < s_num) { 732 if (num < s_num) {