Author: janderwald
Date: Sun Feb 9 13:59:25 2014
New Revision: 62070
URL:
http://svn.reactos.org/svn/reactos?rev=62070&view=rev
Log:
[USBHUB]
- dont assert on invalid configuration descriptors
CORE-7730 #comment please re-test
Modified:
trunk/reactos/drivers/usb/usbhub/fdo.c
Modified: trunk/reactos/drivers/usb/usbhub/fdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbhub/fdo.c?r…
==============================================================================
--- trunk/reactos/drivers/usb/usbhub/fdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbhub/fdo.c [iso-8859-1] Sun Feb 9 13:59:25 2014
@@ -849,6 +849,12 @@
// use first interface descriptor available
//
InterfaceDescriptor = USBD_ParseConfigurationDescriptorEx(ConfigurationDescriptor,
ConfigurationDescriptor, 0, -1, -1, -1, -1);
+ if (InterfaceDescriptor == NULL)
+ {
+ DPRINT1("Error USBD_ParseConfigurationDescriptorEx failed to parse
interface descriptor\n");
+ return STATUS_INVALID_PARAMETER;
+ }
+
ASSERT(InterfaceDescriptor);
//