mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:35:43 +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;
|
FDODeviceExtension = (PFDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
|
||||||
ASSERT(FDODeviceExtension->Common.IsFDO);
|
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 */
|
/* Now allocate the urb */
|
||||||
Urb = USBD_CreateConfigurationRequestEx(FDODeviceExtension->ConfigurationDescriptor,
|
Urb = USBD_CreateConfigurationRequestEx(FDODeviceExtension->ConfigurationDescriptor,
|
||||||
FDODeviceExtension->InterfaceList);
|
FDODeviceExtension->InterfaceList);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue