Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156499717
D19375.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
446 B
Referenced Files
None
Subscribers
None
D19375.diff
View Options
Index: head/sys/kern/subr_bus.c
===================================================================
--- head/sys/kern/subr_bus.c
+++ head/sys/kern/subr_bus.c
@@ -3004,6 +3004,10 @@
PDEBUG(("%s", DEVICENAME(dev)));
if (dev->state == DS_BUSY)
return (EBUSY);
+ if (dev->state == DS_ATTACHING) {
+ device_printf(dev, "device in attaching state! Deferring detach.\n");
+ return (EBUSY);
+ }
if (dev->state != DS_ATTACHED)
return (0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 15, 4:04 AM (1 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33072530
Default Alt Text
D19375.diff (446 B)
Attached To
Mode
D19375: Prevent detaching driver if the attach is not finished
Attached
Detach File
Event Timeline
Log In to Comment