Author: cgutman
Date: Wed Apr 7 22:18:44 2010
New Revision: 46767
URL:
http://svn.reactos.org/svn/reactos?rev=46767&view=rev
Log:
[PCI]
- Fix a crash that occurs when a device is started which requires no resources
Modified:
trunk/reactos/drivers/bus/pci/pdo.c
Modified: trunk/reactos/drivers/bus/pci/pdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pci/pdo.c?rev=…
==============================================================================
--- trunk/reactos/drivers/bus/pci/pdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pci/pdo.c [iso-8859-1] Wed Apr 7 22:18:44 2010
@@ -1199,6 +1199,9 @@
PPDO_DEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
UCHAR Irq;
+ if (!RawResList)
+ return STATUS_SUCCESS;
+
/* TODO: Assign the other resources we get to the card */
for (i = 0; i < RawResList->Count; i++)