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);
        }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to