Revert "net: sctp: Fix a_rwnd/rwnd management to reflect real state of the receiver...
[firefly-linux-kernel-4.4.55.git] / net / sctp / sm_statefuns.c
index 01e002430c858c293cdda11bd2962c3340043fb9..ae9fbeba40b03ca22bbfdd4f34106905e0c01d1e 100644 (file)
@@ -6178,7 +6178,7 @@ static int sctp_eat_data(const struct sctp_association *asoc,
         * PMTU.  In cases, such as loopback, this might be a rather
         * large spill over.
         */
-       if ((!chunk->data_accepted) && (!asoc->rwnd ||
+       if ((!chunk->data_accepted) && (!asoc->rwnd || asoc->rwnd_over ||
            (datalen > asoc->rwnd + asoc->frag_point))) {
 
                /* If this is the next TSN, consider reneging to make