mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
[NTOSKRNL]
Don't crash when unmapping a kernel-space image section, due to dereferencing a NULL Process. svn path=/trunk/; revision=56701
This commit is contained in:
@@ -4105,7 +4105,7 @@ MiRosUnmapViewOfSection(IN PEPROCESS Process,
|
||||
|
||||
ASSERT(Process);
|
||||
|
||||
AddressSpace = &Process->Vm;
|
||||
AddressSpace = Process ? &Process->Vm : MmGetKernelAddressSpace();
|
||||
|
||||
MmLockAddressSpace(AddressSpace);
|
||||
MemoryArea = MmLocateMemoryAreaByAddress(AddressSpace,
|
||||
|
||||
Reference in New Issue
Block a user