Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164142983
D49543.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
765 B
Referenced Files
None
Subscribers
None
D49543.diff
View Options
diff --git a/sys/kern/subr_intr.c b/sys/kern/subr_intr.c
--- a/sys/kern/subr_intr.c
+++ b/sys/kern/subr_intr.c
@@ -1733,14 +1733,6 @@
return (i);
}
}
- for (i = 0; i < irq_map_first_free_idx; i++) {
- if (irq_map[i] == NULL) {
- irq_map[i] = entry;
- irq_map_first_free_idx = i + 1;
- mtx_unlock(&irq_map_lock);
- return (i);
- }
- }
mtx_unlock(&irq_map_lock);
/* XXX Expand irq_map table */
@@ -1760,7 +1752,8 @@
panic("Attempt to unmap invalid resource id: %u\n", res_id);
entry = irq_map[res_id];
irq_map[res_id] = NULL;
- irq_map_first_free_idx = res_id;
+ if (res_id < irq_map_first_free_idx)
+ irq_map_first_free_idx = res_id;
mtx_unlock(&irq_map_lock);
intr_free_intr_map_data(entry->map_data);
free(entry, M_INTRNG);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 30, 3:18 AM (9 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35723676
Default Alt Text
D49543.diff (765 B)
Attached To
Mode
D49543: Correctly track index of first free irq map entry
Attached
Detach File
Event Timeline
Log In to Comment