kern/165643: commit references a PR
dfilter service
dfilter at FreeBSD.ORG
Sun Mar 4 11:20:05 UTC 2012
The following reply was made to PR kern/165643; it has been noted by GNATS.
From: dfilter at FreeBSD.ORG (dfilter service)
To: bug-followup at 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 at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
More information about the freebsd-net
mailing list