Lock address space at returning in MmNotPresentFaultVirtualMemory.

svn path=/trunk/; revision=2932
This commit is contained in:
Hartmut Birr 2002-05-07 22:36:46 +00:00
parent a2b0f101ef
commit 136a40d069

View file

@ -1,4 +1,4 @@
/* $Id: virtual.c,v 1.55 2002/01/09 03:00:21 dwelch Exp $ /* $Id: virtual.c,v 1.56 2002/05/07 22:36:46 hbirr Exp $
* *
* COPYRIGHT: See COPYING in the top directory * COPYRIGHT: See COPYING in the top directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -296,6 +296,7 @@ MmNotPresentFaultVirtualMemory(PMADDRESS_SPACE AddressSpace,
*/ */
if (PageOp->OpType != MM_PAGEOP_PAGEIN) if (PageOp->OpType != MM_PAGEOP_PAGEIN)
{ {
MmLockAddressSpace(AddressSpace);
MmReleasePageOp(PageOp); MmReleasePageOp(PageOp);
return(STATUS_MM_RESTART_OPERATION); return(STATUS_MM_RESTART_OPERATION);
} }
@ -304,6 +305,7 @@ MmNotPresentFaultVirtualMemory(PMADDRESS_SPACE AddressSpace,
*/ */
if (!NT_SUCCESS(PageOp->Status)) if (!NT_SUCCESS(PageOp->Status))
{ {
MmLockAddressSpace(AddressSpace);
MmReleasePageOp(PageOp); MmReleasePageOp(PageOp);
return(Status); return(Status);
} }