Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177366098
D61309.1794209677.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
732 B
Referenced Files
None
Subscribers
None
D61309.1794209677.diff
View Options
diff --git a/sys/dev/acpica/acpi_pci_link.c b/sys/dev/acpica/acpi_pci_link.c
--- a/sys/dev/acpica/acpi_pci_link.c
+++ b/sys/dev/acpica/acpi_pci_link.c
@@ -666,7 +666,7 @@
return;
}
link->l_references++;
- if (link->l_routed)
+ if (link->l_routed && link->l_irq < nitems(pci_link_interrupt_weights))
pci_link_interrupt_weights[link->l_irq]++;
/*
@@ -910,8 +910,9 @@
PCI_INTERRUPT_VALID(link->l_irq)) {
link->l_routed = true;
acpi_config_intr(dev, resource);
- pci_link_interrupt_weights[link->l_irq] +=
- link->l_references;
+ if (link->l_irq < nitems(pci_link_interrupt_weights))
+ pci_link_interrupt_weights[link->l_irq] +=
+ link->l_references;
}
link++;
i++;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 9, 7:34 AM (2 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41601804
Default Alt Text
D61309.1794209677.diff (732 B)
Attached To
Mode
D61309: acpi_pci_link: Preemptively avoid buffer overflow
Attached
Detach File
Event Timeline