mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00: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:
parent
6122f3f436
commit
528fc589c0
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue