mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[USBCCGP] Do not try to unconfigure a device that is not configured.
Fixes handling failed IRP_MN_START_DEVICE.
This commit is contained in:
@@ -338,6 +338,13 @@ FDO_CloseConfiguration(
|
||||
FDODeviceExtension = (PFDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
|
||||
ASSERT(FDODeviceExtension->Common.IsFDO);
|
||||
|
||||
/* Nothing to do if we're not configured */
|
||||
if (FDODeviceExtension->ConfigurationDescriptor == NULL ||
|
||||
FDODeviceExtension->InterfaceList == NULL)
|
||||
{
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/* Now allocate the urb */
|
||||
Urb = USBD_CreateConfigurationRequestEx(FDODeviceExtension->ConfigurationDescriptor,
|
||||
FDODeviceExtension->InterfaceList);
|
||||
|
||||
Reference in New Issue
Block a user