Skip to content

Commit 9ceebd7

Browse files
Hongbo Likuba-moo
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 0d9e5df commit 9ceebd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/inet_connection_sock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static bool inet_bhash2_conflict(const struct sock *sk,
236236

237237
#define sk_for_each_bound_bhash(__sk, __tb2, __tb) \
238238
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)
240240

241241
/* This should be called only when the tb and tb2 hashbuckets' locks are held */
242242
static int inet_csk_bind_conflict(const struct sock *sk,

0 commit comments

Comments
 (0)