PERFORCE change 149999 for review

Marko Zec zec at FreeBSD.org
Thu Sep 18 11:32:02 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=149999

Change 149999 by zec at zec_tca51 on 2008/09/18 11:31:49

	Attempt at fixing a strange kernel crash when exiting
	tcpdump in a vnet - strange because in the default vnet
	the crash cannot be provoked.
	
	Reported by: julian

Affected files ...

.. //depot/projects/vimage/src/sys/net/bpf.c#26 edit

Differences ...

==== //depot/projects/vimage/src/sys/net/bpf.c#26 (text+ko) ====

@@ -568,7 +568,9 @@
 	 */
 	if (d->bd_promisc) {
 		d->bd_promisc = 0;
+		CURVNET_SET(ifp->if_vnet);
 		error = ifpromisc(ifp, 0);
+		CURVNET_RESTORE();
 		if (error != 0 && error != ENXIO) {
 			/*
 			 * ENXIO can happen if a pccard is unplugged


More information about the p4-projects mailing list