diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/datagram.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/core/datagram.c b/net/core/datagram.c index b71423db7785..9cbaba98ce4c 100644 --- a/net/core/datagram.c +++ b/net/core/datagram.c | |||
@@ -56,6 +56,7 @@ | |||
56 | #include <net/sock.h> | 56 | #include <net/sock.h> |
57 | #include <net/tcp_states.h> | 57 | #include <net/tcp_states.h> |
58 | #include <trace/events/skb.h> | 58 | #include <trace/events/skb.h> |
59 | #include <net/ll_poll.h> | ||
59 | 60 | ||
60 | /* | 61 | /* |
61 | * Is a socket 'connection oriented' ? | 62 | * Is a socket 'connection oriented' ? |
@@ -207,6 +208,9 @@ struct sk_buff *__skb_recv_datagram(struct sock *sk, unsigned int flags, | |||
207 | } | 208 | } |
208 | spin_unlock_irqrestore(&queue->lock, cpu_flags); | 209 | spin_unlock_irqrestore(&queue->lock, cpu_flags); |
209 | 210 | ||
211 | if (sk_valid_ll(sk) && sk_poll_ll(sk, flags & MSG_DONTWAIT)) | ||
212 | continue; | ||
213 | |||
210 | /* User doesn't want to wait */ | 214 | /* User doesn't want to wait */ |
211 | error = -EAGAIN; | 215 | error = -EAGAIN; |
212 | if (!timeo) | 216 | if (!timeo) |