usb: Add missing unsetup while detaching uchcom

Reviewed by:    christos
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57329
This commit is contained in:
ShengYi Hung committed 2026-06-09 19:28:27 +08:00
1 parent 9c04895086
commit 2934783fa8
1 file changed
+1
+1
View File
@@ -404,6 +404,7 @@ uchcom_detach(device_t dev)
DPRINTFN(11, "\n");
ucom_detach(&sc->sc_super_ucom, &sc->sc_ucom);
usbd_transfer_unsetup(&sc->sc_intr_xfer, 1);
usbd_transfer_unsetup(sc->sc_xfer, UCHCOM_N_TRANSFER);
device_claim_softc(dev);