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)