Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Hongbo Li and committed by
Jakub Kicinski
9ceebd7a 0d9e5df4

+1 -1
+1 -1
net/ipv4/inet_connection_sock.c
··· 236 236 237 237 #define sk_for_each_bound_bhash(__sk, __tb2, __tb) \ 238 238 hlist_for_each_entry(__tb2, &(__tb)->bhash2, bhash_node) \ 239 - sk_for_each_bound(sk2, &(__tb2)->owners) 239 + sk_for_each_bound((__sk), &(__tb2)->owners) 240 240 241 241 /* This should be called only when the tb and tb2 hashbuckets' locks are held */ 242 242 static int inet_csk_bind_conflict(const struct sock *sk,