Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162849169
D2294.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
946 B
Referenced Files
None
Subscribers
None
D2294.diff
View Options
Index: head/sys/kern/subr_bus.c
===================================================================
--- head/sys/kern/subr_bus.c
+++ head/sys/kern/subr_bus.c
@@ -2113,6 +2113,16 @@
}
/*
+ * Probes that return BUS_PROBE_NOWILDCARD or lower
+ * only match on devices whose driver was explicitly
+ * specified.
+ */
+ if (result <= BUS_PROBE_NOWILDCARD &&
+ !(child->flags & DF_FIXEDCLASS)) {
+ result = ENXIO;
+ }
+
+ /*
* The driver returned an error so it
* certainly doesn't match.
*/
@@ -2127,14 +2137,6 @@
* of pri for the first match.
*/
if (best == NULL || result > pri) {
- /*
- * Probes that return BUS_PROBE_NOWILDCARD
- * or lower only match on devices whose
- * driver was explicitly specified.
- */
- if (result <= BUS_PROBE_NOWILDCARD &&
- !(child->flags & DF_FIXEDCLASS))
- continue;
best = dl;
pri = result;
continue;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 18, 2:26 PM (9 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35198840
Default Alt Text
D2294.diff (946 B)
Attached To
Mode
D2294: Fix handling of BUS_PROBE_NOWILDCARD in 'device_probe_child()'.
Attached
Detach File
Event Timeline
Log In to Comment