diff options
-rw-r--r-- | net/tipc/socket.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 91aa2dc51771..c1a199c0fa6d 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c | |||
@@ -1065,7 +1065,9 @@ restart: | |||
1065 | /* Loop around if more data is required */ | 1065 | /* Loop around if more data is required */ |
1066 | 1066 | ||
1067 | if ((sz_copied < buf_len) /* didn't get all requested data */ | 1067 | if ((sz_copied < buf_len) /* didn't get all requested data */ |
1068 | && (flags & MSG_WAITALL) /* ... and need to wait for more */ | 1068 | && (!skb_queue_empty(&sock->sk->sk_receive_queue) || |
1069 | (flags & MSG_WAITALL)) | ||
1070 | /* ... and more is ready or required */ | ||
1069 | && (!(flags & MSG_PEEK)) /* ... and aren't just peeking at data */ | 1071 | && (!(flags & MSG_PEEK)) /* ... and aren't just peeking at data */ |
1070 | && (!err) /* ... and haven't reached a FIN */ | 1072 | && (!err) /* ... and haven't reached a FIN */ |
1071 | ) | 1073 | ) |