projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- ObpCreateDosDevicesDirectory: Check that allocation succeeded before dereference
[reactos.git]
/
reactos
/
ntoskrnl
/
ob
/
obname.c
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 */