]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/i386-ports.c
lspci: Show Slot Power Limit values above EFh
[pciutils.git] / lib / i386-ports.c
index b3b752cb1f3f7181295100dc64e17bef99344b2b..20bce94b7d01eaccacde05219415f8d62b8a5f82 100644 (file)
@@ -53,7 +53,10 @@ static void
 conf12_cleanup(struct pci_access *a UNUSED)
 {
   if (conf12_io_enabled > 0)
-    conf12_io_enabled = intel_cleanup_io(a);
+    {
+      intel_cleanup_io(a);
+      conf12_io_enabled = -1;
+    }
 }
 
 /*
@@ -72,6 +75,7 @@ intel_sanity_check(struct pci_access *a, struct pci_methods *m)
 {
   struct pci_dev d;
 
+  memset(&d, 0, sizeof(d));
   a->debug("...sanity check");
   d.bus = 0;
   d.func = 0;