aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2025-03-12 14:53:16 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2025-03-12 14:54:49 +0000
commitba6c35f0cadbbcf37a89f193609c6dc90f08a8b2 (patch)
tree259ae77389c643f1d60cd5826e547d2979744c8f
parent43a15a22c62345091fc4a2ea2bec529acda7c61f (diff)
usb: Use bus_detach_children instead of bus_generic_detach
The USB bus performs additional teardown steps in between detaching child devices and deleting child devices. Reported by: phk, thj Tested by: phk Fixes: e9d3857040a1 ("Use bus_detach_children instead of bus_generic_detach")
-rw-r--r--sys/dev/usb/controller/usb_controller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/usb_controller.c b/sys/dev/usb/controller/usb_controller.c
index d717ad56adea..7e89a5ab0155 100644
--- a/sys/dev/usb/controller/usb_controller.c
+++ b/sys/dev/usb/controller/usb_controller.c
@@ -438,7 +438,7 @@ usb_bus_detach(struct usb_proc_msg *pm)
/* detach children first */
bus_topo_lock();
- bus_generic_detach(dev);
+ bus_detach_children(dev);
bus_topo_unlock();
/*