Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dist/ipf/netinet PR bin/45894



details:   https://anonhg.NetBSD.org/src/rev/5f93fc54a6e6
branches:  trunk
changeset: 773337:5f93fc54a6e6
user:      darrenr <darrenr%NetBSD.org@localhost>
date:      Tue Jan 31 09:41:37 2012 +0000

description:
PR bin/45894
ipftest core dumps when running tests

diffstat:

 sys/dist/ipf/netinet/fil.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 2d4ff66b3a60 -r 5f93fc54a6e6 sys/dist/ipf/netinet/fil.c
--- a/sys/dist/ipf/netinet/fil.c        Tue Jan 31 09:39:47 2012 +0000
+++ b/sys/dist/ipf/netinet/fil.c        Tue Jan 31 09:41:37 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fil.c,v 1.47 2012/01/30 16:12:49 darrenr Exp $ */
+/*     $NetBSD: fil.c,v 1.48 2012/01/31 09:41:37 darrenr Exp $ */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -138,7 +138,7 @@
 #if !defined(lint)
 #if defined(__NetBSD__)
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.47 2012/01/30 16:12:49 darrenr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.48 2012/01/31 09:41:37 darrenr Exp $");
 #else
 static const char sccsid[] = "@(#)fil.c        1.36 6/5/96 (C) 1993-2000 Darren Reed";
 static const char rcsid[] = "@(#)Id: fil.c,v 2.443.2.36 2012/01/29 05:30:35 darrenr Exp";
@@ -3195,7 +3195,9 @@
        if (!FR_ISPASS(pass)) {
                LBUMP(ipf_stats[out].fr_block);
                if (*mp != NULL) {
+#ifdef _KERNEL
                        FREE_MB_T(*mp);
+#endif
                        m = *mp = NULL;
                }
        } else {



Home | Main Index | Thread Index | Old Index