Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2008 11:32:01 GMT
From:      Marko Zec <zec@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 149999 for review
Message-ID:  <200809181132.m8IBW1U9008626@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=149999

Change 149999 by zec@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809181132.m8IBW1U9008626>