From 306940b613699d50ed7a5e5a7bb430760243e899 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 10 Dec 2008 20:37:49 +0000 Subject: Replace m_free() with m_freem() in foo_start() to ensure that upon error the full mbuf chain is freed. ok claudio@ kettenis@ --- sys/dev/ic/gem.c | 4 ++-- sys/dev/ic/hme.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/ic') 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++; } -- cgit v1.2.3