Author: tfaber
Date: Wed Mar 1 13:51:18 2017
New Revision: 74014
URL:
http://svn.reactos.org/svn/reactos?rev=74014&view=rev
Log:
[USBSTOR]
- Fix error check in USBSTOR_SelectConfigurationAndInterface. CID 515249
Modified:
trunk/reactos/drivers/usb/usbstor/descriptor.c
Modified: trunk/reactos/drivers/usb/usbstor/descriptor.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbstor/descri…
==============================================================================
--- trunk/reactos/drivers/usb/usbstor/descriptor.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbstor/descriptor.c [iso-8859-1] Wed Mar 1 13:51:18 2017
@@ -422,14 +422,14 @@
// 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;
}
//