summaryrefslogtreecommitdiffstats
path: root/sys/dev/lnc
diff options
context:
space:
mode:
authoritojun <itojun@FreeBSD.org>2000-07-04 18:43:32 +0000
committeritojun <itojun@FreeBSD.org>2000-07-04 18:43:32 +0000
commitb59a314956a87ed86e7fd48275543ff1ee0f5a65 (patch)
tree1adb0908c8a3ae71b39d80d1e81078d3c26c90c1 /sys/dev/lnc
parent8d5454b61a39935066e62212acc62c2786652099 (diff)
downloadFreeBSD-src-b59a314956a87ed86e7fd48275543ff1ee0f5a65.zip
FreeBSD-src-b59a314956a87ed86e7fd48275543ff1ee0f5a65.tar.gz
be sure to wipe out m_pkthdr when you set M_PKTHDR, you may see junk pointer
in m_pkthdr portion. actually, we should not change pkthdr mbuf <-> non-pkthdr mbuf.
Diffstat (limited to 'sys/dev/lnc')
-rw-r--r--sys/dev/lnc/if_lnc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c
index 960393c..d1c6e68 100644
--- a/sys/dev/lnc/if_lnc.c
+++ b/sys/dev/lnc/if_lnc.c
@@ -306,6 +306,7 @@ chain_mbufs(lnc_softc_t *sc, int start_of_packet, int pkt_len)
head = desc->buff.mbuf;
head->m_flags |= M_PKTHDR;
+ bzero(&head->m_pkthdr, sizeof(head->m_pkthdr));
m = head;
do {
OpenPOWER on IntegriCloud