Page MenuHomeFreeBSD

D46383.diff
No OneTemporary

D46383.diff

diff --git a/sys/netinet/tcp_lro.c b/sys/netinet/tcp_lro.c
--- a/sys/netinet/tcp_lro.c
+++ b/sys/netinet/tcp_lro.c
@@ -595,7 +595,7 @@
static void
tcp_lro_flush_active(struct lro_ctrl *lc)
{
- struct lro_entry *le;
+ struct lro_entry *le, *le_tmp;
/*
* Walk through the list of le entries, and
@@ -607,7 +607,7 @@
* is being freed. This is ok it will just get
* reallocated again like it was new.
*/
- LIST_FOREACH(le, &lc->lro_active, next) {
+ LIST_FOREACH_SAFE(le, &lc->lro_active, next, le_tmp) {
if (le->m_head != NULL) {
tcp_lro_active_remove(le);
tcp_lro_flush(lc, le);

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 15, 11:59 PM (9 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31512006
Default Alt Text
D46383.diff (608 B)

Event Timeline