Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net don't free mbuf twice.
details: https://anonhg.NetBSD.org/src/rev/74e1a5bb1710
branches: trunk
changeset: 342332:74e1a5bb1710
user: christos <christos%NetBSD.org@localhost>
date: Wed Dec 16 23:14:42 2015 +0000
description:
don't free mbuf twice.
XXX: pullup 7.
diffstat:
sys/net/bpf.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 6ea50fa6db60 -r 74e1a5bb1710 sys/net/bpf.c
--- a/sys/net/bpf.c Wed Dec 16 23:00:39 2015 +0000
+++ b/sys/net/bpf.c Wed Dec 16 23:14:42 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bpf.c,v 1.192 2015/10/14 19:40:09 christos Exp $ */
+/* $NetBSD: bpf.c,v 1.193 2015/12/16 23:14:42 christos Exp $ */
/*
* Copyright (c) 1990, 1991, 1993
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.192 2015/10/14 19:40:09 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.193 2015/12/16 23:14:42 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_bpf.h"
@@ -721,7 +721,8 @@
if (mc != NULL) {
if (error == 0)
(*ifp->if_input)(ifp, mc);
- m_freem(mc);
+ else
+ m_freem(mc);
}
splx(s);
KERNEL_UNLOCK_ONE(NULL);
Home |
Main Index |
Thread Index |
Old Index