]> git.baikalelectronics.ru Git - kernel.git/commit
inet: Fix missing return value in inet6_hash
authorCraig Gallek <kraig@google.com>
Tue, 25 Oct 2016 22:08:49 +0000 (18:08 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Oct 2016 16:01:49 +0000 (12:01 -0400)
commit028f540d28fa947547fbb477c46e4c6f707a181e
treeddb3bf47f45033bff0960019da9e937df6b06dc2
parent27ecebe2526dfae6a1cdc7356965ca066adfa29c
inet: Fix missing return value in inet6_hash

As part of a series to implement faster SO_REUSEPORT lookups,
commit ce69a4263fb8 ("sock: struct proto hash function may error")
added return values to protocol hash functions and
commit 518ae5aa0cda ("inet: create IPv6-equivalent inet_hash function")
implemented a new hash function for IPv6.  However, the latter does
not respect the former's convention.

This properly propagates the hash errors in the IPv6 case.

Fixes: 518ae5aa0cda ("inet: create IPv6-equivalent inet_hash function")
Reported-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Craig Gallek <kraig@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/inet6_hashtables.c