Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143911999
D9145.id23899.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
959 B
Referenced Files
None
Subscribers
None
D9145.id23899.diff
View Options
Index: sys/arm/arm/gic.c
===================================================================
--- sys/arm/arm/gic.c
+++ sys/arm/arm/gic.c
@@ -1438,18 +1438,18 @@
found = true;
/* Check this range is valid */
- for (end_irq = irq; end_irq != irq + count - 1; end_irq++) {
- /* No free interrupts */
- if (end_irq == sc->sc_spi_end) {
+ for (end_irq = irq; end_irq < irq + count; end_irq++) {
+ KASSERT((psc->gic_irqs[end_irq].gi_flags & GI_FLAG_MSI)!= 0,
+ ("%s: Non-MSI interrupt found", __func__));
+
+ /* Range does not fit */
+ if (end_irq >= sc->sc_spi_end) {
found = false;
break;
}
- KASSERT((psc->gic_irqs[irq].gi_flags & GI_FLAG_MSI)!= 0,
- ("%s: Non-MSI interrupt found", __func__));
-
/* This is already used */
- if ((psc->gic_irqs[irq].gi_flags & GI_FLAG_MSI_USED) ==
+ if ((psc->gic_irqs[end_irq].gi_flags & GI_FLAG_MSI_USED) ==
GI_FLAG_MSI_USED) {
found = false;
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 2, 9:17 PM (16 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28417645
Default Alt Text
D9145.id23899.diff (959 B)
Attached To
Mode
D9145: Fix MSI IRQ allocation for ARM GIC
Attached
Detach File
Event Timeline
Log In to Comment