projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d3e952
)
[NTOSKRNL]
author
Cameron Gutman
<aicommander@gmail.com>
Tue, 22 Jun 2010 15:53:52 +0000
(15:53 +0000)
committer
Cameron Gutman
<aicommander@gmail.com>
Tue, 22 Jun 2010 15:53:52 +0000
(15:53 +0000)
- Check that the caller passed a valid PDO pointer to IoOpenDeviceRegistryKey
svn path=/trunk/; revision=47827
reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
index
9d130ec
..
06f1405
100644
(file)
--- a/
reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
+++ b/
reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
@@
-3528,6
+3528,8
@@
IoOpenDeviceRegistryKey(IN PDEVICE_OBJECT DeviceObject,
else
{
DeviceNode = IopGetDeviceNode(DeviceObject);
+ if (!DeviceNode)
+ return STATUS_INVALID_DEVICE_REQUEST;
KeyNameLength += sizeof(EnumKeyName) - sizeof(UNICODE_NULL) +
DeviceNode->InstancePath.Length;
}