aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/tipc/socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index ca6f52f392a9..91aa2dc51771 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -919,7 +919,8 @@ restart:
919 /* Consume received message (optional) */ 919 /* Consume received message (optional) */
920 920
921 if (likely(!(flags & MSG_PEEK))) { 921 if (likely(!(flags & MSG_PEEK))) {
922 if (unlikely(++tsock->p->conn_unacked >= TIPC_FLOW_CONTROL_WIN)) 922 if ((sock->state != SS_READY) &&
923 (++tsock->p->conn_unacked >= TIPC_FLOW_CONTROL_WIN))
923 tipc_acknowledge(tsock->p->ref, tsock->p->conn_unacked); 924 tipc_acknowledge(tsock->p->ref, tsock->p->conn_unacked);
924 advance_queue(tsock); 925 advance_queue(tsock);
925 } 926 }