diff --git a/usb/ddk/host/src/usb_raw_api_library.c b/usb/ddk/host/src/usb_raw_api_library.c index d80f0b6cee472ab1410b2f3ff4938a0cf3fc12df..b903018b061adfdfc0dd93773f26322dea156bce 100644 --- a/usb/ddk/host/src/usb_raw_api_library.c +++ b/usb/ddk/host/src/usb_raw_api_library.c @@ -916,7 +916,7 @@ int32_t RawAttachInterface(struct UsbDeviceHandle *devHandle, uint32_t interface int32_t ret = osAdapterOps->attachKernelDriver(devHandle, interfaceNumber); if (ret >= 0) { devHandle->attachedInterfaces |= 1U << interfaceNumber; - devHandle->attachedInterfaces &= ~(1U << interfaceNumber); + devHandle->detachedInterfaces &= ~(1U << interfaceNumber); OsalMutexUnlock(&devHandle->lock); return HDF_SUCCESS; }