Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140003305
D47974.id147652.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
420 B
Referenced Files
None
Subscribers
None
D47974.id147652.diff
View Options
diff --git a/sys/dev/puc/puc.c b/sys/dev/puc/puc.c
--- a/sys/dev/puc/puc.c
+++ b/sys/dev/puc/puc.c
@@ -373,10 +373,9 @@
return (0);
fail:
+ device_delete_children(dev);
for (idx = 0; idx < sc->sc_nports; idx++) {
port = &sc->sc_port[idx];
- if (port->p_dev != NULL)
- device_delete_child(dev, port->p_dev);
if (port->p_rres != NULL)
rman_release_resource(port->p_rres);
if (port->p_ires != NULL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 19, 9:39 PM (2 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27058434
Default Alt Text
D47974.id147652.diff (420 B)
Attached To
Mode
D47974: puc: Use device_delete_children if attach fails
Attached
Detach File
Event Timeline
Log In to Comment