summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed/if_ed.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ed/if_ed.c')
-rw-r--r--sys/dev/ed/if_ed.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index d68da1e..66b0aa0 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -2105,8 +2105,10 @@ outloop:
}
} else {
len = ed_pio_write_mbufs(sc, m, (int)buffer);
- if (len == 0)
+ if (len == 0) {
+ m_freem(m0);
goto outloop;
+ }
}
sc->txb_len[sc->txb_new] = max(len, (ETHER_MIN_LEN-ETHER_CRC_LEN));
OpenPOWER on IntegriCloud