- ObpCreateDosDevicesDirectory: Check that allocation succeeded before dereference

svn path=/trunk/; revision=43031
This commit is contained in:
Stefan Ginsberg 2009-09-11 22:31:46 +00:00
parent 5c57066048
commit 172aed5aa9

View file

@ -101,6 +101,7 @@ ObpCreateDosDevicesDirectory(VOID)
ObSystemDeviceMap = ExAllocatePoolWithTag(NonPagedPool,
sizeof(*ObSystemDeviceMap),
'mDbO');
if (!ObSystemDeviceMap) return STATUS_INSUFFICIENT_RESOURCES;
RtlZeroMemory(ObSystemDeviceMap, sizeof(*ObSystemDeviceMap));
/* Return status */