mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[USBSTOR]
- Fix error check in USBSTOR_SelectConfigurationAndInterface. CID 515249 svn path=/trunk/; revision=74014
This commit is contained in:
parent
156cf60be5
commit
d25e21c753
1 changed files with 2 additions and 2 deletions
|
@ -422,14 +422,14 @@ USBSTOR_SelectConfigurationAndInterface(
|
|||
// backup interface information
|
||||
//
|
||||
DeviceExtension->InterfaceInformation = (PUSBD_INTERFACE_INFORMATION)AllocateItem(NonPagedPool, Urb->UrbSelectConfiguration.Interface.Length);
|
||||
if (!NT_SUCCESS(Status))
|
||||
if (!DeviceExtension->InterfaceInformation)
|
||||
{
|
||||
//
|
||||
// failed to allocate interface information structure
|
||||
//
|
||||
FreeItem(InterfaceList);
|
||||
ExFreePoolWithTag(Urb, 0);
|
||||
return Status;
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue