Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
mptcp: Pick correct sk when iterating in mptcp_set_rto
Browse files Browse the repository at this point in the history
We are iterating with sk_it as the iterator, so pick this one!

Fixes: 57192ff ("mptcp: Correct initial meta-RTO estimation after 3-way handshake")
Signed-off-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
  • Loading branch information
cpaasch authored and matttbe committed May 3, 2018
1 parent e4eeb82 commit 92a6e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/mptcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ static inline void mptcp_set_rto(struct sock *sk)
mptcp_for_each_sub(tp->mpcb, mptcp) {
struct sock *sk_it = mptcp_to_sock(mptcp);

if ((mptcp_sk_can_send(sk_it) || sk->sk_state == TCP_SYN_RECV) &&
if ((mptcp_sk_can_send(sk_it) || sk_it->sk_state == TCP_SYN_RECV) &&
inet_csk(sk_it)->icsk_rto > max_rto)
max_rto = inet_csk(sk_it)->icsk_rto;
}
Expand Down

0 comments on commit 92a6e05

Please sign in to comment.