Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108565445
D31381.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
666 B
Referenced Files
None
Subscribers
None
D31381.diff
View Options
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -1638,15 +1638,15 @@
/* Unwired device, find the next available slot for it */
unit = 0;
for (unit = 0;; unit++) {
+ /* If this device slot is already in use, skip it. */
+ if (unit < dc->maxunit && dc->devices[unit] != NULL)
+ continue;
+
/* If there is an "at" hint for a unit then skip it. */
if (resource_string_value(dc->name, unit, "at", &s) ==
0)
continue;
- /* If this device slot is already in use, skip it. */
- if (unit < dc->maxunit && dc->devices[unit] != NULL)
- continue;
-
break;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 9:59 AM (7 m, 49 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16193922
Default Alt Text
D31381.diff (666 B)
Attached To
Mode
D31381: devclass_alloc_unit: move "at" hint test to after device-in-use test
Attached
Detach File
Event Timeline
Log In to Comment