Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152959020
D51624.id165135.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.id165135.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, Apr 19, 8:16 AM (1 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31755609
Default Alt Text
D51624.id165135.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