[USBSTOR]

- Fix error check in USBSTOR_SelectConfigurationAndInterface. CID 515249

svn path=/trunk/; revision=74014
This commit is contained in:
Thomas Faber 2017-03-01 13:51:18 +00:00
parent 156cf60be5
commit d25e21c753

View file

@ -422,14 +422,14 @@ USBSTOR_SelectConfigurationAndInterface(
// backup interface information // backup interface information
// //
DeviceExtension->InterfaceInformation = (PUSBD_INTERFACE_INFORMATION)AllocateItem(NonPagedPool, Urb->UrbSelectConfiguration.Interface.Length); DeviceExtension->InterfaceInformation = (PUSBD_INTERFACE_INFORMATION)AllocateItem(NonPagedPool, Urb->UrbSelectConfiguration.Interface.Length);
if (!NT_SUCCESS(Status)) if (!DeviceExtension->InterfaceInformation)
{ {
// //
// failed to allocate interface information structure // failed to allocate interface information structure
// //
FreeItem(InterfaceList); FreeItem(InterfaceList);
ExFreePoolWithTag(Urb, 0); ExFreePoolWithTag(Urb, 0);
return Status; return STATUS_INSUFFICIENT_RESOURCES;
} }
// //