diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-06-08 17:25:47 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-06-08 17:25:47 +0000 |
commit | b00a40ea34597b9cea889e6267a799d7143d1e94 (patch) | |
tree | b7f462276d32a2ec3f0bf512660707bcd33eba3c /sys/net/if_trunk.c | |
parent | 2e0df038fbe5c03494d8b3c11ca79c760ec9871e (diff) |
Use m_freem() instead of m_free() in trunk_start() to ensure that the
full mbuf chain is being free'd.
ok reyk@
Diffstat (limited to 'sys/net/if_trunk.c')
-rw-r--r-- | sys/net/if_trunk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_trunk.c b/sys/net/if_trunk.c index 89df84459e9..5fdc323a48a 100644 --- a/sys/net/if_trunk.c +++ b/sys/net/if_trunk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_trunk.c,v 1.42 2008/05/07 13:45:35 dlg Exp $ */ +/* $OpenBSD: if_trunk.c,v 1.43 2008/06/08 17:25:46 brad Exp $ */ /* * Copyright (c) 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> @@ -913,7 +913,7 @@ trunk_start(struct ifnet *ifp) if (tr->tr_proto != TRUNK_PROTO_NONE) error = (*tr->tr_start)(tr, m); else - m_free(m); + m_freem(m); if (error == 0) ifp->if_opackets++; |