]> git.pld-linux.org Git - packages/net-snmp.git/blobdiff - net-snmp-libpci-init.patch
- backport bug 3460364 (Fix use of block factor when detecting error conditions)
[packages/net-snmp.git] / net-snmp-libpci-init.patch
index 1aa748cb63df688c468d8e8dd0816822be9b6cf7..4adca98f434097e89f6423168959cefd78e9c87a 100644 (file)
  #endif
  
  #ifdef HAVE_LINUX_ETHTOOL_H
-@@ -146,9 +158,13 @@
+@@ -146,9 +158,15 @@
  
  #ifdef HAVE_PCI_LOOKUP_NAME
      pci_access = pci_alloc();
 -    if (pci_access)
 +    if (pci_access) {
++      pci_access->error = _net_snmp_pci_error;
        pci_init(pci_access);
 -    else
 +      if (_net_snmp_pci_status == 0) {
 +          pci_cleanup(pci_access);
 +          pci_access = NULL;
++          snmp_log(LOG_ERR, "Unable to create pci access method (libpci)\n");
 +      }
 +    } else
        snmp_log(LOG_ERR, "Unable to create pci access method\n");
This page took 0.042658 seconds and 4 git commands to generate.