]> mj.ucw.cz Git - pciutils.git/commitdiff
Capability loop detection introduced 2.2.7 did not work properly with
authorMartin Mares <mj@ucw.cz>
Fri, 12 Oct 2007 15:59:45 +0000 (17:59 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 12 Oct 2007 15:59:45 +0000 (17:59 +0200)
extended capabilities. Fixed.

ChangeLog
lspci.c

index 33f4eb9e2a6150bc7f812f59f96461f067ee32e6..db72832329e4579d94d8d53a847b4ee109e17926 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-12  Martin Mares <mj@ucw.cz>
+
+       * Capability loop detection introduced 2.2.7 did not work
+         properly with extended capabilities. Fixed.
+
 2007-10-05  Martin Mares <mj@ucw.cz>
 
        * Released as 2.2.7.
diff --git a/lspci.c b/lspci.c
index 512aa57151c169e304d6b1a1a92c084174f20690..7ffbcdfb84cddc61781f995883d0d08350db7603 100644 (file)
--- a/lspci.c
+++ b/lspci.c
@@ -1437,7 +1437,7 @@ show_ext_caps(struct device *d)
        break;
       id = header & 0xffff;
       printf("\tCapabilities: [%03x] ", where);
-      if (been_there[where++])
+      if (been_there[where]++)
        {
          printf("<chain looped>\n");
          break;