Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F141963757
D37522.id113571.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
597 B
Referenced Files
None
Subscribers
None
D37522.id113571.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c
--- a/sys/compat/linuxkpi/common/src/linux_pci.c
+++ b/sys/compat/linuxkpi/common/src/linux_pci.c
@@ -931,6 +931,11 @@
return (pdev->dev.irq_end - pdev->dev.irq_start);
}
if (flags & PCI_IRQ_MSI) {
+ if (pci_msi_count(pdev->dev.bsddev) < minv)
+ return (-ENOSPC);
+ /* We only support 1 vector in pci_enable_msi() */
+ if (1 < minv)
+ return (-ENOSPC);
error = pci_enable_msi(pdev);
if (error == 0 && pdev->msi_enabled)
return (pdev->dev.irq_end - pdev->dev.irq_start);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 15, 6:15 AM (4 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27644822
Default Alt Text
D37522.id113571.diff (597 B)
Attached To
Mode
D37522: LinuxKPI: fix pci_alloc_irq_vectors() for MSI
Attached
Detach File
Event Timeline
Log In to Comment