git: 2934783fa80d - main - usb: Add missing unsetup while detaching uchcom
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Jun 2026 11:28:38 UTC
The branch main has been updated by aokblast:
URL: https://cgit.FreeBSD.org/src/commit/?id=2934783fa80de2854d9527ae11db85c47ac65a91
commit 2934783fa80de2854d9527ae11db85c47ac65a91
Author: ShengYi Hung <aokblast@FreeBSD.org>
AuthorDate: 2026-05-29 15:09:52 +0000
Commit: ShengYi Hung <aokblast@FreeBSD.org>
CommitDate: 2026-06-09 11:28:27 +0000
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
---
sys/dev/usb/serial/uchcom.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/dev/usb/serial/uchcom.c b/sys/dev/usb/serial/uchcom.c
index fdc5515fa722..ff1ac8897c90 100644
--- a/sys/dev/usb/serial/uchcom.c
+++ b/sys/dev/usb/serial/uchcom.c
@@ -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);