mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Lock address space at returning in MmNotPresentFaultVirtualMemory.
svn path=/trunk/; revision=2932
This commit is contained in:
parent
a2b0f101ef
commit
136a40d069
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue