|
@@ -69,7 +69,6 @@ struct sock *__inet6_lookup_established(struct net *net,
|
|
struct inet_ehash_bucket *head = &hashinfo->ehash[slot];
|
|
struct inet_ehash_bucket *head = &hashinfo->ehash[slot];
|
|
|
|
|
|
|
|
|
|
- rcu_read_lock();
|
|
|
|
begin:
|
|
begin:
|
|
sk_nulls_for_each_rcu(sk, node, &head->chain) {
|
|
sk_nulls_for_each_rcu(sk, node, &head->chain) {
|
|
if (sk->sk_hash != hash)
|
|
if (sk->sk_hash != hash)
|
|
@@ -90,7 +89,6 @@ begin:
|
|
out:
|
|
out:
|
|
sk = NULL;
|
|
sk = NULL;
|
|
found:
|
|
found:
|
|
- rcu_read_unlock();
|
|
|
|
return sk;
|
|
return sk;
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(__inet6_lookup_established);
|
|
EXPORT_SYMBOL(__inet6_lookup_established);
|
|
@@ -138,7 +136,6 @@ struct sock *inet6_lookup_listener(struct net *net,
|
|
unsigned int hash = inet_lhashfn(net, hnum);
|
|
unsigned int hash = inet_lhashfn(net, hnum);
|
|
struct inet_listen_hashbucket *ilb = &hashinfo->listening_hash[hash];
|
|
struct inet_listen_hashbucket *ilb = &hashinfo->listening_hash[hash];
|
|
|
|
|
|
- rcu_read_lock();
|
|
|
|
begin:
|
|
begin:
|
|
result = NULL;
|
|
result = NULL;
|
|
hiscore = 0;
|
|
hiscore = 0;
|
|
@@ -187,7 +184,6 @@ found:
|
|
goto begin;
|
|
goto begin;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- rcu_read_unlock();
|
|
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(inet6_lookup_listener);
|
|
EXPORT_SYMBOL_GPL(inet6_lookup_listener);
|