mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +00:00
- ObpCreateDosDevicesDirectory: Check that allocation succeeded before dereference
svn path=/trunk/; revision=43031
This commit is contained in:
parent
5c57066048
commit
172aed5aa9
1 changed files with 1 additions and 0 deletions
|
@ -101,6 +101,7 @@ ObpCreateDosDevicesDirectory(VOID)
|
||||||
ObSystemDeviceMap = ExAllocatePoolWithTag(NonPagedPool,
|
ObSystemDeviceMap = ExAllocatePoolWithTag(NonPagedPool,
|
||||||
sizeof(*ObSystemDeviceMap),
|
sizeof(*ObSystemDeviceMap),
|
||||||
'mDbO');
|
'mDbO');
|
||||||
|
if (!ObSystemDeviceMap) return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
RtlZeroMemory(ObSystemDeviceMap, sizeof(*ObSystemDeviceMap));
|
RtlZeroMemory(ObSystemDeviceMap, sizeof(*ObSystemDeviceMap));
|
||||||
|
|
||||||
/* Return status */
|
/* Return status */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue