summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/link/qdisc/fifo/endpoint.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-11-08 21:33:42 +0000
committergVisor bot <gvisor-bot@google.com>2021-11-08 21:33:42 +0000
commit8e8544025bec8ac990a94167268fcf512d1a2914 (patch)
treee8407771fc5041ecb5dc2a7f450ce15296be1655 /pkg/tcpip/link/qdisc/fifo/endpoint.go
parent99b9b89692af3398230ec5bea3d5f90fc7e429c2 (diff)
parent84b38f4c6e065d3f9314a8abbb3f5857ed4fa44e (diff)
Merge release-20211101.0-26-g84b38f4c6 (automated)
Diffstat (limited to 'pkg/tcpip/link/qdisc/fifo/endpoint.go')
-rw-r--r--pkg/tcpip/link/qdisc/fifo/endpoint.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/tcpip/link/qdisc/fifo/endpoint.go b/pkg/tcpip/link/qdisc/fifo/endpoint.go
index c15cbf81b..a68b274b2 100644
--- a/pkg/tcpip/link/qdisc/fifo/endpoint.go
+++ b/pkg/tcpip/link/qdisc/fifo/endpoint.go
@@ -94,9 +94,7 @@ func (q *queueDispatcher) dispatchLoop() {
// We pass a protocol of zero here because each packet carries its
// NetworkProtocol.
q.lower.WritePackets(stack.RouteInfo{}, batch, 0 /* protocol */)
- for pkt := batch.Front(); pkt != nil; pkt = pkt.Next() {
- batch.Remove(pkt)
- }
+ batch.DecRef()
batch.Reset()
}
}