diff options
author | Paolo Abeni <[email protected]> | 2020-07-22 17:20:50 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-07-22 17:57:37 -0700 |
commit | 6ab301c98f174a8c25d5351b977a1113e2f1fb91 (patch) | |
tree | 548ed9be7a713af0f34edac00d6ee22bfbfb859d | |
parent | bb809a047eb5070e2fc76aa62d111fbbe656c532 (diff) |
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 <[email protected]>
Tested-by: Christoph Paasch <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
-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, |