projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c57066
)
- ObpCreateDosDevicesDirectory: Check that allocation succeeded before dereference
author
Stefan Ginsberg
<stefanginsberg@gmail.com>
Fri, 11 Sep 2009 22:31:46 +0000
(22:31 +0000)
committer
Stefan Ginsberg
<stefanginsberg@gmail.com>
Fri, 11 Sep 2009 22:31:46 +0000
(22:31 +0000)
svn path=/trunk/; revision=43031
reactos/ntoskrnl/ob/obname.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/ob/obname.c
b/reactos/ntoskrnl/ob/obname.c
index
c04460e
..
c97d4ce
100644
(file)
--- a/
reactos/ntoskrnl/ob/obname.c
+++ b/
reactos/ntoskrnl/ob/obname.c
@@
-101,6
+101,7
@@
ObpCreateDosDevicesDirectory(VOID)
ObSystemDeviceMap = ExAllocatePoolWithTag(NonPagedPool,
sizeof(*ObSystemDeviceMap),
'mDbO');
+ if (!ObSystemDeviceMap) return STATUS_INSUFFICIENT_RESOURCES;
RtlZeroMemory(ObSystemDeviceMap, sizeof(*ObSystemDeviceMap));
/* Return status */