Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162637678
D57066.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
485 B
Referenced Files
None
Subscribers
None
D57066.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -399,8 +399,8 @@
static inline bool
dev_is_pci(struct device *dev)
{
-
- return (device_get_devclass(dev->bsddev) == devclass_find("pci"));
+ return (device_get_devclass(device_get_parent(dev->bsddev)) ==
+ devclass_find("pci"));
}
static inline uint16_t
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 16, 7:22 AM (12 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33318143
Default Alt Text
D57066.diff (485 B)
Attached To
Mode
D57066: LinuxKPI: Check the devclass of the parent device in dev_is_pci
Attached
Detach File
Event Timeline
Log In to Comment