Module Name: src
Committed By: sborrill
Date: Thu Dec 3 09:44:35 UTC 2009
Modified Files:
src/sys/net [netbsd-4]: if_tap.c
Log Message:
Pull up the following revisions(s) (requested by plunky in ticket #1368):
sys/net/if_tap.c: revision 1.60
Fix a potential leak on tap device close; purging the send queue did not
actually release the dequeued mbufs.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.24.2.1 src/sys/net/if_tap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/if_tap.c
diff -u src/sys/net/if_tap.c:1.24 src/sys/net/if_tap.c:1.24.2.1
--- src/sys/net/if_tap.c:1.24 Fri Nov 24 01:04:30 2006
+++ src/sys/net/if_tap.c Thu Dec 3 09:44:35 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: if_tap.c,v 1.24 2006/11/24 01:04:30 rpaulo Exp $ */
+/* $NetBSD: if_tap.c,v 1.24.2.1 2009/12/03 09:44:35 sborrill Exp $ */
/*
* Copyright (c) 2003, 2004 The NetBSD Foundation.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.24 2006/11/24 01:04:30 rpaulo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.24.2.1 2009/12/03 09:44:35 sborrill Exp $");
#if defined(_KERNEL_OPT)
#include "bpfilter.h"
@@ -799,6 +799,7 @@
if (ifp->if_bpf)
bpf_mtap(ifp->if_bpf, m);
#endif
+ m_freem(m);
}
}
splx(s);