diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2004-12-10 21:25:54 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2004-12-10 21:25:54 +0000 |
commit | 12c009627283dd670ebdb223b04a23b49fb2e1b0 (patch) | |
tree | 6676ccd81b2426c5ee6ad79f8cbae34d8668248c /sys/dev | |
parent | 378eb184da59f2ca3c72de8c7a7e041e415f3af9 (diff) |
fix mbuf defragmentation
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_ipw.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_iwi.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index 7f0dbec6c59..6222a590273 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $Id: if_ipw.c,v 1.35 2004/12/06 20:27:15 damien Exp $ */ +/* $Id: if_ipw.c,v 1.36 2004/12/10 21:25:52 damien Exp $ */ /*- * Copyright (c) 2004 @@ -1234,7 +1234,7 @@ ipw_tx_start(struct ifnet *ifp, struct mbuf *m, struct ieee80211_node *ni) m_copydata(m, 0, m->m_pkthdr.len, mtod(mnew, caddr_t)); m_freem(m); - m->m_len = m->m_pkthdr.len; + mnew->m_len = mnew->m_pkthdr.len; m = mnew; error = bus_dmamap_load_mbuf(sc->sc_dmat, sbuf->map, m, diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c index c16666b40f7..7b62b3fdec5 100644 --- a/sys/dev/pci/if_iwi.c +++ b/sys/dev/pci/if_iwi.c @@ -1,4 +1,4 @@ -/* $Id: if_iwi.c,v 1.20 2004/12/06 20:27:15 damien Exp $ */ +/* $Id: if_iwi.c,v 1.21 2004/12/10 21:25:53 damien Exp $ */ /*- * Copyright (c) 2004 @@ -1081,7 +1081,7 @@ iwi_tx_start(struct ifnet *ifp, struct mbuf *m, struct ieee80211_node *ni) m_copydata(m, 0, m->m_pkthdr.len, mtod(mnew, caddr_t)); m_freem(m); - m->m_len = m->m_pkthdr.len; + mnew->m_len = mnew->m_pkthdr.len; m = mnew; error = bus_dmamap_load_mbuf(sc->sc_dmat, buf->map, m, |