Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2016 09:37:28 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r304371 - stable/11/sys/dev/ntb
Message-ID:  <201608180937.u7I9bSPS098994@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Thu Aug 18 09:37:27 2016
New Revision: 304371
URL: https://svnweb.freebsd.org/changeset/base/304371

Log:
  MFC r303551: Fix infinite loops introduced at r303429.

Modified:
  stable/11/sys/dev/ntb/ntb.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/ntb/ntb.c
==============================================================================
--- stable/11/sys/dev/ntb/ntb.c	Thu Aug 18 09:36:45 2016	(r304370)
+++ stable/11/sys/dev/ntb/ntb.c	Thu Aug 18 09:37:27 2016	(r304371)
@@ -206,7 +206,7 @@ ntb_link_enable(device_t ntb, enum ntb_s
 	struct ntb_child **cpp = device_get_softc(device_get_parent(nc->dev));
 	struct ntb_child *nc1;
 
-	for (nc1 = *cpp; nc1 != NULL; nc1 = nc->next) {
+	for (nc1 = *cpp; nc1 != NULL; nc1 = nc1->next) {
 		if (nc1->enabled) {
 			nc->enabled = 1;
 			return (0);
@@ -226,7 +226,7 @@ ntb_link_disable(device_t ntb)
 	if (!nc->enabled)
 		return (0);
 	nc->enabled = 0;
-	for (nc1 = *cpp; nc1 != NULL; nc1 = nc->next) {
+	for (nc1 = *cpp; nc1 != NULL; nc1 = nc1->next) {
 		if (nc1->enabled)
 			return (0);
 	}



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