Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171840129
D57428.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
616 B
Referenced Files
None
Subscribers
None
D57428.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
@@ -308,8 +308,9 @@
struct pci_dev *
lkpi_pci_get_device(uint32_t vendor, uint32_t device, struct pci_dev *odev)
{
- struct pci_dev *pdev, *found;
+ struct pci_dev *pdev, *found, *odev0;
+ odev0 = odev;
found = NULL;
spin_lock(&pci_lock);
list_for_each_entry(pdev, &pci_devices, links) {
@@ -328,6 +329,7 @@
}
pci_dev_get(found);
spin_unlock(&pci_lock);
+ pci_dev_put(odev0);
return (found);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 14, 11:29 PM (16 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33747944
Default Alt Text
D57428.diff (616 B)
Attached To
Mode
D57428: LinuxKPI: fix lkpi_pci_get_device() reference counting on device
Attached
Detach File
Event Timeline
Log In to Comment