Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jun 2015 13:29:42 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r284073 - stable/10/sys/net
Message-ID:  <201506061329.t56DTgdE042000@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Sat Jun  6 13:29:41 2015
New Revision: 284073
URL: https://svnweb.freebsd.org/changeset/base/284073

Log:
  MFC r276902,282536:
    Pass mtag argument into m_tag_locate() to continue the search from
    the last found mtag.

Modified:
  stable/10/sys/net/if_me.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/net/if_me.c
==============================================================================
--- stable/10/sys/net/if_me.c	Sat Jun  6 13:26:13 2015	(r284072)
+++ stable/10/sys/net/if_me.c	Sat Jun  6 13:29:41 2015	(r284073)
@@ -487,7 +487,7 @@ me_check_nesting(struct ifnet *ifp, stru
 
 	count = 1;
 	mtag = NULL;
-	while ((mtag = m_tag_locate(m, MTAG_ME, 0, NULL)) != NULL) {
+	while ((mtag = m_tag_locate(m, MTAG_ME, 0, mtag)) != NULL) {
 		if (*(struct ifnet **)(mtag + 1) == ifp) {
 			log(LOG_NOTICE, "%s: loop detected\n", ifp->if_xname);
 			return (EIO);



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