]> mj.ucw.cz Git - pciutils.git/blobdiff - ls-caps.c
lspci: Fix unsynchronized caches in lspci struct device and pci struct pci_dev
[pciutils.git] / ls-caps.c
index 2c99812c4ed25cdb72c7c71054b53365ec78675c..bc1443af8a8b457fe6c94798a57291573113e486 100644 (file)
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -1812,6 +1812,7 @@ show_caps(struct device *d, int where)
              break;
            case PCI_CAP_ID_EXP:
              type = cap_express(d, where, cap);
              break;
            case PCI_CAP_ID_EXP:
              type = cap_express(d, where, cap);
+        struct pci_cap* test = pci_find_cap(d->dev, PCI_CAP_ID_EXP, PCI_CAP_NORMAL);
              can_have_ext_caps = 1;
              break;
            case PCI_CAP_ID_MSIX:
              can_have_ext_caps = 1;
              break;
            case PCI_CAP_ID_MSIX: