diff options
author | Paolo Abeni <pabeni@redhat.com> | 2020-07-22 17:20:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-23 02:57:37 +0200 |
commit | 6ab301c98f174a8c25d5351b977a1113e2f1fb91 (patch) | |
tree | 548ed9be7a713af0f34edac00d6ee22bfbfb859d /net/mptcp | |
parent | lan743x: remove redundant initialization of variable current_head_index (diff) | |
download | linux-6ab301c98f174a8c25d5351b977a1113e2f1fb91.tar.xz linux-6ab301c98f174a8c25d5351b977a1113e2f1fb91.zip |
mptcp: zero token hash at creation time.
Otherwise the 'chain_len' filed will carry random values,
some token creation calls will fail due to excessive chain
length, causing unexpected fallback to TCP.
Fixes: 2c5ebd001d4f ("mptcp: refactor token container")
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Tested-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp')
-rw-r--r-- | net/mptcp/token.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mptcp/token.c b/net/mptcp/token.c index b25b390dbbff..97cfc45bcc4f 100644 --- a/net/mptcp/token.c +++ b/net/mptcp/token.c @@ -368,7 +368,7 @@ void __init mptcp_token_init(void) sizeof(struct token_bucket), 0, 20,/* one slot per 1MB of memory */ - 0, + HASH_ZERO, NULL, &token_mask, 0, |