Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Mar 2012 11:20:04 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-net@FreeBSD.org
Subject:   Re: kern/165643: commit references a PR
Message-ID:  <201203041120.q24BK4Db070836@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/165643; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/165643: commit references a PR
Date: Sun,  4 Mar 2012 11:11:45 +0000 (UTC)

 Author: zec
 Date: Sun Mar  4 11:11:03 2012
 New Revision: 232487
 URL: http://svn.freebsd.org/changeset/base/232487
 
 Log:
   Properly restore curvnet context when returning early from
   ether_input_internal().
   
   This change only affects options VIMAGE kernel builds.
   
   PR:		kern/165643
   Submitted by:	Vijay Singh
   MFC after:	3 days
 
 Modified:
   head/sys/net/if_ethersubr.c
 
 Modified: head/sys/net/if_ethersubr.c
 ==============================================================================
 --- head/sys/net/if_ethersubr.c	Sun Mar  4 10:37:26 2012	(r232486)
 +++ head/sys/net/if_ethersubr.c	Sun Mar  4 11:11:03 2012	(r232487)
 @@ -661,8 +661,10 @@ ether_input_internal(struct ifnet *ifp, 
  		m = (*lagg_input_p)(ifp, m);
  		if (m != NULL)
  			ifp = m->m_pkthdr.rcvif;
 -		else 
 +		else {
 +			CURVNET_RESTORE();
  			return;
 +		}
  	}
  
  	/*
 @@ -681,6 +683,7 @@ ether_input_internal(struct ifnet *ifp, 
  #endif
  			ifp->if_ierrors++;
  			m_freem(m);
 +			CURVNET_RESTORE();
  			return;
  		}
  
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



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