diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2023-12-19 01:18:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-12-22 23:15:35 +0100 |
commit | 8002d44fe84dd7b98812aadcbc1bd897e270355c (patch) | |
tree | 90af38c04d00d50b9d47edf7a3dcfc9cbf9b0c9b /scripts/Makefile | |
parent | tcp: Iterate tb->bhash2 in inet_csk_bind_conflict(). (diff) | |
download | linux-8002d44fe84dd7b98812aadcbc1bd897e270355c.tar.xz linux-8002d44fe84dd7b98812aadcbc1bd897e270355c.zip |
tcp: Check hlist_empty(&tb->bhash2) instead of hlist_empty(&tb->owners).
We use hlist_empty(&tb->owners) to check if the bhash bucket has a socket.
We can check the child bhash2 buckets instead.
For this to work, the bhash2 bucket must be freed before the bhash bucket.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions