diff options
author | Hongbo Li <lihongbo22@huawei.com> | 2024-08-23 09:04:53 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-08-26 23:04:25 +0200 |
commit | 9ceebd7a264798a792a3cf515f4c331704d4c5fb (patch) | |
tree | 7a0ac9787ff0f29f2023b82e4a3354d5005db2d6 /net/ipv4/inet_connection_sock.c | |
parent | tcp: avoid reusing FIN_WAIT2 when trying to find port in connect() process (diff) | |
download | linux-9ceebd7a264798a792a3cf515f4c331704d4c5fb.tar.xz linux-9ceebd7a264798a792a3cf515f4c331704d4c5fb.zip |
net/ipv4: fix macro definition sk_for_each_bound_bhash
The macro sk_for_each_bound_bhash accepts a parameter
__sk, but it was not used, rather the sk2 is directly
used, so we replace the sk2 with __sk in macro.
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Link: https://patch.msgid.link/20240823070453.3327832-1-lihongbo22@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/inet_connection_sock.c')
-rw-r--r-- | net/ipv4/inet_connection_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index 64d07b842e73..ce4d77f49243 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c @@ -236,7 +236,7 @@ static bool inet_bhash2_conflict(const struct sock *sk, #define sk_for_each_bound_bhash(__sk, __tb2, __tb) \ hlist_for_each_entry(__tb2, &(__tb)->bhash2, bhash_node) \ - sk_for_each_bound(sk2, &(__tb2)->owners) + sk_for_each_bound((__sk), &(__tb2)->owners) /* This should be called only when the tb and tb2 hashbuckets' locks are held */ static int inet_csk_bind_conflict(const struct sock *sk, |