pciutils/pciutils-2.2.7-ext_caps.diff

12 lines
244 B
Diff

--- lspci.c
+++ lspci.c
@@ -1437,7 +1437,7 @@
break;
id = header & 0xffff;
printf("\tCapabilities: [%03x] ", where);
- if (been_there[where++])
+ if (been_there[where]++)
{
printf("<chain looped>\n");
break;