[NTOSKRNL]

* Fix a potential null pointer dereference. CID 701145.
* Change the ASSERT to NT_ASSERT.
CORE-6681

svn path=/trunk/; revision=60624
This commit is contained in:
Amine Khaldi 2013-10-11 23:29:08 +00:00
parent 073f1929a8
commit 3648f77525

View file

@ -4137,7 +4137,7 @@ MiRosUnmapViewOfSection(IN PEPROCESS Process,
MemoryArea->Type != MEMORY_AREA_SECTION_VIEW ||
MemoryArea->DeleteInProgress)
{
ASSERT(MemoryArea->Type != MEMORY_AREA_OWNED_BY_ARM3);
if (MemoryArea) NT_ASSERT(MemoryArea->Type != MEMORY_AREA_OWNED_BY_ARM3);
MmUnlockAddressSpace(AddressSpace);
return STATUS_NOT_MAPPED_VIEW;
}