Thread (12 messages) flat view 12 messages, 5 authors, 2016-08-24

Re: [PATCH net] udp: fix poll() issue with zero sized packets

From: Eric Dumazet <hidden>
Date: 2016-08-23 20:56:37

On Tue, 2016-08-23 at 13:53 -0700, Eric Dumazet wrote:
From: Eric Dumazet <edumazet@google.com>
...
quoted hunk ↗ jump to hunk
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index e61f7cd65d08..2a2ac9e0c985 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -1184,11 +1184,11 @@ out:
  *	Drops all bad checksum frames, until a valid one is found.
  *	Returns the length of found skb, or 0 if none is found.
  */
-static unsigned int first_packet_length(struct sock *sk)
+static int first_packet_length(struct sock *sk)

I'll send a V2, updating the comment to :

Returns the length of found skb, or -1 if none is found.

(Thanks Willem for noticing this)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help