diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-12-10 20:37:49 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-12-10 20:37:49 +0000 |
commit | 306940b613699d50ed7a5e5a7bb430760243e899 (patch) | |
tree | 085da23f578e6b44b0de2aefc73b669214ddc301 /sys/dev | |
parent | d3fde971f3528926e84ea051a99417a80417f473 (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')
-rw-r--r-- | sys/dev/ic/gem.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/hme.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c index 81103d3e172..08620c290ce 100644 --- a/sys/dev/ic/gem.c +++ b/sys/dev/ic/gem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gem.c,v 1.84 2008/11/28 02:44:17 brad Exp $ */ +/* $OpenBSD: gem.c,v 1.85 2008/12/10 20:37:48 brad Exp $ */ /* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */ /* @@ -1713,6 +1713,6 @@ gem_start(struct ifnet *ifp) drop: IFQ_DEQUEUE(&ifp->if_snd, m); - m_free(m); + m_freem(m); ifp->if_oerrors++; } 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++; } |