Thread (2 messages) 2 messages, 2 authors, 2015-02-08

Re: [PATCH net-next 1/1] tipc: fix bug in socket reception function

flat view

From: David Miller <davem@davemloft.net>
Date: 2015-02-08 21:09:51

From: Jon Maloy <redacted>
Date: Sun,  8 Feb 2015 11:10:50 -0500
In commit c637c1035534867b85b78b453c38c495b58e2c5a ("tipc: resolve race
problem at unicast message reception") we introduced a time limit
for how long the function tipc_sk_eneque() would be allowed to execute
its loop. Unfortunately, the test for when this limit is passed was put
in the wrong place, resulting in a lost message when the test is true.

We fix this by moving the test to before we dequeue the next buffer
from the input queue.

Signed-off-by: Jon Maloy <redacted>
Applied, thanks Jon.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help