Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102045577
D43925.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
936 B
Referenced Files
None
Subscribers
None
D43925.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D43925: pci_host_generic: Properly handle bus_release_resource of IRQ resources
Attached
Detach File
Event Timeline
Log In to Comment