summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorbmilekic <bmilekic@FreeBSD.org>2003-03-04 20:19:26 +0000
committerbmilekic <bmilekic@FreeBSD.org>2003-03-04 20:19:26 +0000
commit60ca7c6bf6657c380a58659e8b44a2fafb89fe0b (patch)
treebae1fb4977f9001db901965fd1f3385268bc67e5 /sys/pci
parente196887b273e98ec9a9685e7c467e1210885b09e (diff)
downloadFreeBSD-src-60ca7c6bf6657c380a58659e8b44a2fafb89fe0b.zip
FreeBSD-src-60ca7c6bf6657c380a58659e8b44a2fafb89fe0b.tar.gz
Fix bug introduced in 1.130. For the < MHLEN case, we should
be doing a m_gethdr(), not an m_get(). Pointed out by: Hiten Pandya <hiten@unixdaemons.com> Pointy hat to: Me
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_xl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c
index cc4c6d5..50e0502 100644
--- a/sys/pci/if_xl.c
+++ b/sys/pci/if_xl.c
@@ -2439,7 +2439,7 @@ xl_encap(sc, c, m_head)
m_new = m_head->m_pkthdr.len > MHLEN ?
m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR) :
- m_get(M_DONTWAIT, MT_DATA);
+ m_gethdr(M_DONTWAIT, MT_DATA);
if (m_new == NULL) {
m_freem(m_head);
printf("xl%d: no memory for tx list\n", sc->xl_unit);
OpenPOWER on IntegriCloud