Page MenuHomeFreeBSD

D43925.diff
No OneTemporary

D43925.diff

diff --git a/sys/dev/pci/pci_host_generic.c b/sys/dev/pci/pci_host_generic.c
--- a/sys/dev/pci/pci_host_generic.c
+++ b/sys/dev/pci/pci_host_generic.c
@@ -431,16 +431,24 @@
pci_host_generic_core_release_resource(device_t dev, device_t child, int type,
int rid, struct resource *res)
{
+#if defined(NEW_PCIB) && defined(PCI_RES_BUS)
struct generic_pcie_core_softc *sc;
sc = device_get_softc(dev);
-
+#endif
+ switch (type) {
#if defined(NEW_PCIB) && defined(PCI_RES_BUS)
- if (type == PCI_RES_BUS) {
+ case PCI_RES_BUS:
return (pci_domain_release_bus(sc->ecam, child, rid, res));
- }
#endif
- return (bus_generic_rman_release_resource(dev, child, type, rid, res));
+ case SYS_RES_IOPORT:
+ case SYS_RES_MEMORY:
+ return (bus_generic_rman_release_resource(dev, child, type, rid,
+ res));
+ default:
+ return (bus_generic_release_resource(dev, child, type, rid,
+ res));
+ }
}
static struct pcie_range *

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 7, 10:34 PM (21 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14522164
Default Alt Text
D43925.diff (936 B)

Event Timeline