Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90724
b: refs/heads/master
c: a198d3a
h: refs/heads/master
v: v3
  • Loading branch information
Allan Stephens authored and David S. Miller committed Apr 15, 2008
1 parent 3a385f4 commit 6ba15f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 990098068fe963f956c14f681bd88d90dcb14584
refs/heads/master: a198d3a200313bca8261e30e6daaad790937fd7e
4 changes: 3 additions & 1 deletion trunk/net/tipc/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,9 @@ static int recv_stream(struct kiocb *iocb, struct socket *sock,
/* Loop around if more data is required */

if ((sz_copied < buf_len) /* didn't get all requested data */
&& (flags & MSG_WAITALL) /* ... and need to wait for more */
&& (!skb_queue_empty(&sock->sk->sk_receive_queue) ||
(flags & MSG_WAITALL))
/* ... and more is ready or required */
&& (!(flags & MSG_PEEK)) /* ... and aren't just peeking at data */
&& (!err) /* ... and haven't reached a FIN */
)
Expand Down

0 comments on commit 6ba15f8

Please sign in to comment.