Skip to content

Commit

Permalink
mptcp: Paulo's fix for #442
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Paasch <cpaasch@apple.com>
  • Loading branch information
cpaasch committed Sep 27, 2023
1 parent 6070d1d commit b9e611b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/mptcp/sockopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1490,9 +1490,7 @@ int mptcp_set_rcvlowat(struct sock *sk, int val)
return 0;

space = __tcp_space_from_win(mptcp_sk(sk)->scaling_ratio, val);
if (space > sk->sk_rcvbuf) {
if (space > sk->sk_rcvbuf)
WRITE_ONCE(sk->sk_rcvbuf, space);
tcp_sk(sk)->window_clamp = val;
}
return 0;
}

0 comments on commit b9e611b

Please sign in to comment.