aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index cd99f1a0f59f..7c41ab84e72e 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -1167,7 +1167,7 @@ int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
1167 struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; 1167 struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name;
1168 struct sk_buff *skb; 1168 struct sk_buff *skb;
1169 unsigned int ulen, copied; 1169 unsigned int ulen, copied;
1170 int peeked; 1170 int peeked, off = 0;
1171 int err; 1171 int err;
1172 int is_udplite = IS_UDPLITE(sk); 1172 int is_udplite = IS_UDPLITE(sk);
1173 bool slow; 1173 bool slow;
@@ -1183,7 +1183,7 @@ int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
1183 1183
1184try_again: 1184try_again:
1185 skb = __skb_recv_datagram(sk, flags | (noblock ? MSG_DONTWAIT : 0), 1185 skb = __skb_recv_datagram(sk, flags | (noblock ? MSG_DONTWAIT : 0),
1186 &peeked, &err); 1186 &peeked, &off, &err);
1187 if (!skb) 1187 if (!skb)
1188 goto out; 1188 goto out;
1189 1189