Page MenuHomeFreeBSD

D16882.diff
No OneTemporary

D16882.diff

Index: head/sys/net/iflib.c
===================================================================
--- head/sys/net/iflib.c
+++ head/sys/net/iflib.c
@@ -3636,7 +3636,8 @@
if (__predict_false(ctx->ifc_flags & IFC_QFLUSH)) {
DBG_COUNTER_INC(txq_drain_flushing);
for (i = 0; i < avail; i++) {
- m_free(r->items[(cidx + i) & (r->size-1)]);
+ if (__predict_true(r->items[(cidx + i) & (r->size-1)] != (void *)txq)
+ m_free(r->items[(cidx + i) & (r->size-1)]);
r->items[(cidx + i) & (r->size-1)] = NULL;
}
return (avail);

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 4:21 AM (4 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15584389
Default Alt Text
D16882.diff (537 B)

Event Timeline