Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140154951
D51624.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
475 B
Referenced Files
None
Subscribers
None
D51624.diff
View Options
diff --git a/sys/x86/x86/msi.c b/sys/x86/x86/msi.c
--- a/sys/x86/x86/msi.c
+++ b/sys/x86/x86/msi.c
@@ -219,6 +219,14 @@
struct msi_intsrc *msi = (struct msi_intsrc *)isrc;
msi = msi->msi_first;
+
+ /*
+ * Interrupt sources are always registered, but never unregistered.
+ * Handle the case where MSIs have all been unregistered.
+ */
+ if (msi == NULL)
+ return;
+
msi->msi_enabled--;
if (msi->msi_enabled == 0) {
for (u_int i = 0; i < msi->msi_count; i++)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 21, 10:49 PM (9 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
21564635
Default Alt Text
D51624.diff (475 B)
Attached To
Mode
D51624: x86/intr: Handle case of disabling MSI after release
Attached
Detach File
Event Timeline
Log In to Comment