Module Name: src
Committed By: sborrill
Date: Thu Dec 3 09:40:00 UTC 2009
Modified Files:
src/sys/net [netbsd-5]: if_tap.c
Log Message:
Pull up the following revisions(s) (requested by plunky in ticket #1173):
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.47.4.6 -r1.47.4.7 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.47.4.6 src/sys/net/if_tap.c:1.47.4.7
--- src/sys/net/if_tap.c:1.47.4.6 Sat Apr 4 23:36:28 2009
+++ src/sys/net/if_tap.c Thu Dec 3 09:40:00 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: if_tap.c,v 1.47.4.6 2009/04/04 23:36:28 snj Exp $ */
+/* $NetBSD: if_tap.c,v 1.47.4.7 2009/12/03 09:40:00 sborrill Exp $ */
/*
* Copyright (c) 2003, 2004, 2008, 2009 The NetBSD Foundation.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.47.4.6 2009/04/04 23:36:28 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.47.4.7 2009/12/03 09:40:00 sborrill Exp $");
#if defined(_KERNEL_OPT)
#include "bpfilter.h"
@@ -852,6 +852,7 @@
if (ifp->if_bpf)
bpf_mtap(ifp->if_bpf, m);
#endif
+ m_freem(m);
}
}
splx(s);