From: Martin Mares Date: Fri, 12 Oct 2007 15:59:45 +0000 (+0200) Subject: Capability loop detection introduced 2.2.7 did not work properly with X-Git-Tag: v3.0.0~8^2~20 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=d5b4cd14bcc088bcc487bfd2e555729b815706e6;p=pciutils.git Capability loop detection introduced 2.2.7 did not work properly with extended capabilities. Fixed. --- diff --git a/ChangeLog b/ChangeLog index 33f4eb9..db72832 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-12 Martin Mares + + * Capability loop detection introduced 2.2.7 did not work + properly with extended capabilities. Fixed. + 2007-10-05 Martin Mares * Released as 2.2.7. diff --git a/lspci.c b/lspci.c index 512aa57..7ffbcdf 100644 --- 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("\n"); break;