commit | 7082c5c3f2407c52022507ffaf644dbbab97a883 | [log] [tgz] |
---|---|---|
author | Florian Westphal <fw@strlen.de> | Mon Nov 21 10:08:37 2016 +0100 |
committer | David S. Miller <davem@davemloft.net> | Mon Nov 21 13:13:56 2016 -0500 |
tree | 11b22cf7efa89d4ee5f657f451616340bd290a31 | |
parent | 7c6ae610a1f0a9d3cebf790e0245b4e0f76aa86e [diff] |
tcp: zero ca_priv area when switching cc algorithms We need to zero out the private data area when application switches connection to different algorithm (TCP_CONGESTION setsockopt). When congestion ops get assigned at connect time everything is already zeroed because sk_alloc uses GFP_ZERO flag. But in the setsockopt case this contains whatever previous cc placed there. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>