Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131840888
D8780.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
811 B
Referenced Files
None
Subscribers
None
D8780.diff
View Options
Index: head/sys/compat/linuxkpi/common/include/linux/pci.h
===================================================================
--- head/sys/compat/linuxkpi/common/include/linux/pci.h
+++ head/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -220,18 +220,19 @@
linux_pci_find_irq_dev(unsigned int irq)
{
struct pci_dev *pdev;
+ struct device *found;
+ found = NULL;
spin_lock(&pci_lock);
list_for_each_entry(pdev, &pci_devices, links) {
- if (irq == pdev->dev.irq)
- break;
- if (irq >= pdev->dev.msix && irq < pdev->dev.msix_max)
+ if (irq == pdev->dev.irq ||
+ (irq >= pdev->dev.msix && irq < pdev->dev.msix_max)) {
+ found = &pdev->dev;
break;
+ }
}
spin_unlock(&pci_lock);
- if (pdev)
- return &pdev->dev;
- return (NULL);
+ return (found);
}
static inline unsigned long
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 12, 3:07 PM (3 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23592581
Default Alt Text
D8780.diff (811 B)
Attached To
Mode
D8780: linuxkpi: Fix not-found case of linux_pci_find_irq_dev
Attached
Detach File
Event Timeline
Log In to Comment