Re: [PATCH] fix inverted test in __skb_recv_datagram

2 messages, 2 authors, 2015-12-08 · open the first message on its own page

Re: [PATCH] fix inverted test in __skb_recv_datagram

From: Rainer Weikusat <hidden>
Date: 2015-12-08 14:46:48

David Miller [off-list ref] writes:
From: Rainer Weikusat <redacted>
Date: Mon, 07 Dec 2015 23:30:58 +0000
quoted
As the kernel generally uses negated error numbers, *err needs to be
compared with -EAGAIN (d'oh).

Signed-off-by: Rainer Weikusat <redacted>
Fixes: ea3793ee29d3
Improperly formatted Fixes: tag, you must also include the commit
header line, in parenthesis and double quotes, after the SHA_ID.

Futhermore this is the wrong SHA_ID.
https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/?id=ea3793ee29d3

displays the commit I was referring to, namely, the one containing this

+ timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT);
+
+ do {
+ skb = __skb_try_recv_datagram(sk, flags, peeked, off, err,
+ &last);
+ if (skb)
+ return skb;
+
+ if (*err != EAGAIN)
+ break;
+ } while (timeo &&
+ !__skb_wait_for_more_packets(sk, err, &timeo, last));

which added the inverted test, IOW, if this is the wrong hash, I have no
idea what the right one could be. I'll resubmit this with the 'one line
summary' added. After noticing the issue around 23:10 UK time yesterday,
I was in a bit of a hurry and stopped reading the 'Fixes' text in
SubmittingPatches after the "with the first 12 characters".

Re: [PATCH] fix inverted test in __skb_recv_datagram

From: David Miller <davem@davemloft.net>
Date: 2015-12-08 16:30:46

From: Rainer Weikusat <redacted>
Date: Tue, 08 Dec 2015 14:46:36 +0000
David Miller [off-list ref] writes:
quoted
From: Rainer Weikusat <redacted>
Date: Mon, 07 Dec 2015 23:30:58 +0000
quoted
As the kernel generally uses negated error numbers, *err needs to be
compared with -EAGAIN (d'oh).

Signed-off-by: Rainer Weikusat <redacted>
Fixes: ea3793ee29d3
Improperly formatted Fixes: tag, you must also include the commit
header line, in parenthesis and double quotes, after the SHA_ID.

Futhermore this is the wrong SHA_ID.
https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git/commit/?id=ea3793ee29d3

displays the commit I was referring to, namely, the one containing this
My bad.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help