aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sctp/associola.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index 56ddcfaeb4f6..d3cc30c25c41 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -1471,7 +1471,7 @@ void sctp_assoc_rwnd_increase(struct sctp_association *asoc, unsigned int len)
1471 * threshold. The idea is to recover slowly, but up 1471 * threshold. The idea is to recover slowly, but up
1472 * to the initial advertised window. 1472 * to the initial advertised window.
1473 */ 1473 */
1474 if (asoc->rwnd_press && asoc->rwnd >= asoc->rwnd_press) { 1474 if (asoc->rwnd_press) {
1475 int change = min(asoc->pathmtu, asoc->rwnd_press); 1475 int change = min(asoc->pathmtu, asoc->rwnd_press);
1476 asoc->rwnd += change; 1476 asoc->rwnd += change;
1477 asoc->rwnd_press -= change; 1477 asoc->rwnd_press -= change;