From owner-freebsd-net@FreeBSD.ORG Wed Mar 28 12:50:08 2012 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8F378106566C for ; Wed, 28 Mar 2012 12:50:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 757D48FC08 for ; Wed, 28 Mar 2012 12:50:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2SCo8dW054015 for ; Wed, 28 Mar 2012 12:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2SCo8jK054014; Wed, 28 Mar 2012 12:50:08 GMT (envelope-from gnats) Date: Wed, 28 Mar 2012 12:50:08 GMT Message-Id: <201203281250.q2SCo8jK054014@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: kern/165643: commit references a PR X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2012 12:50:08 -0000 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: Wed, 28 Mar 2012 12:41:36 +0000 (UTC) Author: zec Date: Wed Mar 28 12:41:17 2012 New Revision: 233603 URL: http://svn.freebsd.org/changeset/base/233603 Log: MFC 232487: 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: stable/8/sys/net/if_ethersubr.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/boot/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) stable/8/sys/dev/e1000/ (props changed) stable/8/sys/i386/conf/XENHVM (props changed) Modified: stable/8/sys/net/if_ethersubr.c ============================================================================== --- stable/8/sys/net/if_ethersubr.c Wed Mar 28 12:40:30 2012 (r233602) +++ stable/8/sys/net/if_ethersubr.c Wed Mar 28 12:41:17 2012 (r233603) @@ -660,8 +660,10 @@ ether_input(struct ifnet *ifp, struct mb m = (*lagg_input_p)(ifp, m); if (m != NULL) ifp = m->m_pkthdr.rcvif; - else + else { + CURVNET_RESTORE(); return; + } } /* @@ -680,6 +682,7 @@ ether_input(struct ifnet *ifp, struct mb #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"