udp6: fix udp6_ehashfn() typo
Subsystems (3)
PATCH 1/1 udp6: fix udp6_ehashfn() typo
Amit Klein reported that udp6_ehash_secret was initialized but never used.
Fixes 1bbdceef1e53 ("inet: convert inet_ehash_secret and ipv6_hash_secret to net_get_random_once")
Reported-by Amit Klein <[email protected]>
Signed-off-by Eric Dumazet <[email protected]>
Cc Willy Tarreau <[email protected]>
Cc Willem de Bruijn <[email protected]>
Cc David Ahern <[email protected]>
Cc Hannes Frederic Sowa <[email protected]>
--- net/ipv6/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv6/udp.c +1 -1
@@ -91,7 +91,7 @@ static u32 udp6_ehashfn(const struct net *net, fhash =__ipv6_addr_jhash (faddr, udp_ipv6_hash_secret);return __inet6_ehashfn (lhash, lport, fhash, fport, - udp_ipv6_hash_secret +net_hash_mix (net)); + udp6_ehash_secret +net_hash_mix (net)); }int udp_v6_get_port (struct sock *sk,unsigned short snum)
Signature · 1 line
2.41.0.255.g8b1d071c50-goog
Quoted 9 lines · Eric Dumazet
Amit Klein reported that
udp6_ehash_secretwas initialized but never used.Fixes 1bbdceef1e53 ("inet: convert inet_ehash_secret and ipv6_hash_secret to net_get_random_once")Reported-by Amit Klein <[email protected]>Signed-off-by Eric Dumazet <[email protected]>Cc Willy Tarreau <[email protected]>Cc Willem de Bruijn <[email protected]>Cc David Ahern <[email protected]>Cc Hannes Frederic Sowa <[email protected]>
Reviewed-by Willem de Bruijn <[email protected]>
This patch was applied to netdev/net.git (main) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by David S. Miller <[email protected]>:
Quoted 11 lines · On Sat, 8 Jul 2023 08:29:58 +0000 you wrote:
Amit Klein reported that
udp6_ehash_secretwas initialized but never used.Fixes 1bbdceef1e53 ("inet: convert inet_ehash_secret and ipv6_hash_secret to net_get_random_once")Reported-by Amit Klein <[email protected]>Signed-off-by Eric Dumazet <[email protected]>Cc Willy Tarreau <[email protected]>Cc Willem de Bruijn <[email protected]>Cc David Ahern <[email protected]>Cc Hannes Frederic Sowa <[email protected]>[...]
Here is the summary with links:
- [net] udp6: fix udp6_ehashfn() typo
https://git.kernel.org/netdev/net/c/51d03e2f2203
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html