summaryrefslogtreecommitdiff
path: root/sys/dev/ic/hme.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-12-10 20:37:49 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-12-10 20:37:49 +0000
commit306940b613699d50ed7a5e5a7bb430760243e899 (patch)
tree085da23f578e6b44b0de2aefc73b669214ddc301 /sys/dev/ic/hme.c
parentd3fde971f3528926e84ea051a99417a80417f473 (diff)
Replace m_free() with m_freem() in foo_start() to ensure that upon error
the full mbuf chain is freed. ok claudio@ kettenis@
Diffstat (limited to 'sys/dev/ic/hme.c')
-rw-r--r--sys/dev/ic/hme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/hme.c b/sys/dev/ic/hme.c
index a479132ca19..d6d3ea67081 100644
--- a/sys/dev/ic/hme.c
+++ b/sys/dev/ic/hme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hme.c,v 1.53 2008/11/28 02:44:17 brad Exp $ */
+/* $OpenBSD: hme.c,v 1.54 2008/12/10 20:37:48 brad Exp $ */
/* $NetBSD: hme.c,v 1.21 2001/07/07 15:59:37 thorpej Exp $ */
/*-
@@ -725,7 +725,7 @@ hme_start(ifp)
drop:
IFQ_DEQUEUE(&ifp->if_snd, m);
- m_free(m);
+ m_freem(m);
ifp->if_oerrors++;
}