From: Wei Wang <[email protected]>
Date: Tue, 25 Apr 2017 17:38:02 -0700

> From: Wei Wang <[email protected]>
> 
> Always zero out ca_priv data in tcp_assign_congestion_control() so that
> ca_priv data is cleared out during socket creation.
> Also always zero out ca_priv data in tcp_reinit_congestion_control() so
> that when cc algorithm is changed, ca_priv data is cleared out as well.
> We should still zero out ca_priv data even in TCP_CLOSE state because
> user could call connect() on AF_UNSPEC to disconnect the socket and
> leave it in TCP_CLOSE state and later call setsockopt() to switch cc
> algorithm on this socket.
> 
> Fixes: 2b0a8c9ee ("tcp: add CDG congestion control")
> Reported-by: Andrey Konovalov  <[email protected]>
> Signed-off-by: Wei Wang <[email protected]>
> Acked-by: Eric Dumazet <[email protected]>
> Acked-by: Yuchung Cheng <[email protected]>
> Acked-by: Neal Cardwell <[email protected]>

Applied to 'net' and queued up for -stable, thanks.

Reply via email to