Page MenuHomeFreeBSD

D2294.diff
No OneTemporary

D2294.diff

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

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)

Event Timeline