Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149386309
D26548.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
753 B
Referenced Files
None
Subscribers
None
D26548.diff
View Options
Index: head/sys/netgraph/ng_l2tp.c
===================================================================
--- head/sys/netgraph/ng_l2tp.c
+++ head/sys/netgraph/ng_l2tp.c
@@ -1453,15 +1453,17 @@
struct mbuf *m;
u_int delay;
- /* Make sure callout is still active before doing anything */
- if (callout_pending(&seq->rack_timer) ||
- (!callout_active(&seq->rack_timer)))
- return;
-
/* Sanity check */
L2TP_SEQ_CHECK(seq);
mtx_lock(&seq->mtx);
+ /* Make sure callout is still active before doing anything */
+ if (callout_pending(&seq->rack_timer) ||
+ !callout_active(&seq->rack_timer)) {
+ mtx_unlock(&seq->mtx);
+ return;
+ }
+
priv->stats.xmitRetransmits++;
/* Have we reached the retransmit limit? If so, notify owner. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 25, 3:04 AM (4 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30293965
Default Alt Text
D26548.diff (753 B)
Attached To
Mode
D26548: ng_l2tp: Fix callout synchronization in the RACK timeout handler
Attached
Detach File
Event Timeline
Log In to Comment