Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111089426
D37522.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
598 B
Referenced Files
None
Subscribers
None
D37522.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 (minv != 1)
+ 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
Fri, Feb 28, 6:52 AM (20 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16881362
Default Alt Text
D37522.diff (598 B)
Attached To
Mode
D37522: LinuxKPI: fix pci_alloc_irq_vectors() for MSI
Attached
Detach File
Event Timeline
Log In to Comment