projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30f438b
)
Don't crash if PCI AddDevice is called with a NULL Pdo (happens if pci.sys is conside...
author
Hervé Poussineau
<hpoussin@reactos.org>
Sat, 16 Sep 2006 20:22:54 +0000
(20:22 +0000)
committer
Hervé Poussineau
<hpoussin@reactos.org>
Sat, 16 Sep 2006 20:22:54 +0000
(20:22 +0000)
svn path=/trunk/; revision=24146
reactos/drivers/bus/pci/pci.c
patch
|
blob
|
history
diff --git
a/reactos/drivers/bus/pci/pci.c
b/reactos/drivers/bus/pci/pci.c
index
9cd4b47
..
f5590a0
100644
(file)
--- a/
reactos/drivers/bus/pci/pci.c
+++ b/
reactos/drivers/bus/pci/pci.c
@@
-135,6
+135,8
@@
PciAddDevice(
NTSTATUS Status;
DPRINT("Called\n");
+ if (PhysicalDeviceObject == NULL)
+ return STATUS_SUCCESS;
Status = IoCreateDevice(DriverObject, sizeof(FDO_DEVICE_EXTENSION),
NULL, FILE_DEVICE_BUS_EXTENDER, FILE_DEVICE_SECURE_OPEN, TRUE, &Fdo);