Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168182246
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
Thu, Aug 27, 6:21 PM (1 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37408636
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