summaryrefslogtreecommitdiff
path: root/net/mptcp/token.c
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2020-07-22 18:20:50 +0300
committerDavid S. Miller <davem@davemloft.net>2020-07-23 03:57:37 +0300
commit6ab301c98f174a8c25d5351b977a1113e2f1fb91 (patch)
tree548ed9be7a713af0f34edac00d6ee22bfbfb859d /net/mptcp/token.c
parentbb809a047eb5070e2fc76aa62d111fbbe656c532 (diff)
downloadlinux-6ab301c98f174a8c25d5351b977a1113e2f1fb91.tar.xz
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/token.c')
-rw-r--r--net/mptcp/token.c2
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,