mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:15:39 +00:00
- The pool lock should be acquired before any tests start (pool verify or red zone test).
svn path=/trunk/; revision=5856
This commit is contained in:
parent
54867f2910
commit
238889e049
1 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: ppool.c,v 1.18 2003/08/19 05:24:07 royce Exp $
|
/* $Id: ppool.c,v 1.19 2003/08/25 18:51:50 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -169,12 +169,15 @@ ExAllocatePagedPoolWithTag (IN POOL_TYPE PoolType,
|
||||||
PVOID BlockAddress;
|
PVOID BlockAddress;
|
||||||
ULONG Alignment;
|
ULONG Alignment;
|
||||||
|
|
||||||
|
ExAcquireFastMutex(&MmPagedPoolLock);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Don't bother allocating anything for a zero-byte block.
|
* Don't bother allocating anything for a zero-byte block.
|
||||||
*/
|
*/
|
||||||
if (NumberOfBytes == 0)
|
if (NumberOfBytes == 0)
|
||||||
{
|
{
|
||||||
MmDbgPagedPoolRedZoneCheck(__FILE__,__LINE__);
|
MmDbgPagedPoolRedZoneCheck(__FILE__,__LINE__);
|
||||||
|
ExReleaseFastMutex(&MmPagedPoolLock);
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,7 +207,6 @@ ExAllocatePagedPoolWithTag (IN POOL_TYPE PoolType,
|
||||||
BlockSize = sizeof(MM_PPOOL_FREE_BLOCK_HEADER);
|
BlockSize = sizeof(MM_PPOOL_FREE_BLOCK_HEADER);
|
||||||
}
|
}
|
||||||
|
|
||||||
ExAcquireFastMutex(&MmPagedPoolLock);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Find the best-fitting block.
|
* Find the best-fitting block.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue